<!doctype html><html lang="en">
 <head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <title>CSS Overflow Module Level 3</title>
  <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
  <meta content="revising" name="csswg-work-status">
  <meta content="ED" name="w3c-status">
  <meta content="This module contains the features of CSS relating to scrollable overflow handling in visual media." name="abstract">
  <link href="../default.css" rel="stylesheet" type="text/css">
  <link href="../csslogo.ico" rel="shortcut icon" type="image/x-icon">
<style>
  body {
    background: url("https://www.w3.org/StyleSheets/TR/logo-ED") top left no-repeat;
  }
  </style>
  <link href="https://www.w3.org/TR/css-overflow-3/" rel="canonical">
<style>
.awesome-table td { padding: 5px; }
.awesome-table {
	color: #000;
	background: #fff;
	margin: auto;
}
</style>
<style>/* style-md-lists */

/* This is a weird hack for me not yet following the commonmark spec
   regarding paragraph and lists. */
[data-md] > :first-child {
    margin-top: 0;
}
[data-md] > :last-child {
    margin-bottom: 0;
}</style>
<style>/* style-selflinks */

.heading, .issue, .note, .example, li, dt {
    position: relative;
}
a.self-link {
    position: absolute;
    top: 0;
    left: calc(-1 * (3.5rem - 26px));
    width: calc(3.5rem - 26px);
    height: 2em;
    text-align: center;
    border: none;
    transition: opacity .2s;
    opacity: .5;
}
a.self-link:hover {
    opacity: 1;
}
.heading > a.self-link {
    font-size: 83%;
}
li > a.self-link {
    left: calc(-1 * (3.5rem - 26px) - 2em);
}
dfn > a.self-link {
    top: auto;
    left: auto;
    opacity: 0;
    width: 1.5em;
    height: 1.5em;
    background: gray;
    color: white;
    font-style: normal;
    transition: opacity .2s, background-color .2s, color .2s;
}
dfn:hover > a.self-link {
    opacity: 1;
}
dfn > a.self-link:hover {
    color: black;
}

a.self-link::before            { content: "¶"; }
.heading > a.self-link::before { content: "§"; }
dfn > a.self-link::before      { content: "#"; }</style>
<style>/* style-caniuse-panel */

            .caniuse-status { font: 1em sans-serif; width: 9em; padding: 0.3em; position: absolute; z-index: 8; top: auto; right: 0.3em; background: #EEE; color: black; box-shadow: 0 0 3px #999; overflow: hidden; border-collapse: initial; border-spacing: initial; }
            .caniuse-status.wrapped { width: 1em; height: 1em; }
            .caniuse-status.wrapped > :not(input) { display: none; }
            .caniuse-status > input { position: absolute; right: 0; top: 0; width: 1em; height: 1em; border: none; background: transparent; padding: 0; margin: 0; }
            .caniuse-status > p { font-size: 0.6em; margin: 0; padding: 0; }
            .caniuse-status > p + p { padding-top: 0.5em; }
            .caniuse-status > .support { display: block; }
            .caniuse-status > .support > span { padding: 0.2em 0; display: block; display: table; }
            .caniuse-status > .support > span.partial { color: #666666; filter: grayscale(50%); }
            .caniuse-status > .support > span.no { color: #CCCCCC; filter: grayscale(100%); }
            .canisue-status > .support > span.no::before { opacity: 0.5; }
            .caniuse-status > .support > span:first-of-type { padding-top: 0.5em; }
            .caniuse-status > .support > span > span { padding: 0 0.5em; display: table-cell; vertical-align: top; }
            .caniuse-status > .support > span > span:first-child { width: 100%; }
            .caniuse-status > .support > span > span:last-child { width: 100%; white-space: pre; padding: 0; }
            .caniuse-status > .support > span::before { content: ' '; display: table-cell; min-width: 1.5em; height: 1.5em; background: no-repeat center center; background-size: contain; text-align: right; font-size: 0.75em; font-weight: bold; }
            .caniuse-status > .support > .and_chr::before { background-image: url(https://resources.whatwg.org/browser-logos/chrome.svg); }
            .caniuse-status > .support > .and_ff::before { background-image: url(https://resources.whatwg.org/browser-logos/firefox.png); }
            .caniuse-status > .support > .and_uc::before { background-image: url(https://resources.whatwg.org/browser-logos/uc.png); } /* UC Browser for Android */
            .caniuse-status > .support > .android::before { background-image: url(https://resources.whatwg.org/browser-logos/android.svg); }
            .caniuse-status > .support > .bb::before { background-image: url(https://resources.whatwg.org/browser-logos/bb.jpg); } /* Blackberry Browser */
            .caniuse-status > .support > .chrome::before { background-image: url(https://resources.whatwg.org/browser-logos/chrome.svg); }
            .caniuse-status > .support > .edge::before { background-image: url(https://resources.whatwg.org/browser-logos/edge.svg); }
            .caniuse-status > .support > .firefox::before { background-image: url(https://resources.whatwg.org/browser-logos/firefox.png); }
            .caniuse-status > .support > .ie::before { background-image: url(https://resources.whatwg.org/browser-logos/ie.png); }
            .caniuse-status > .support > .ie_mob::before { background-image: url(https://resources.whatwg.org/browser-logos/ie-mobile.svg); }
            .caniuse-status > .support > .ios_saf::before { background-image: url(https://resources.whatwg.org/browser-logos/safari-ios.svg); }
            .caniuse-status > .support > .op_mini::before { background-image: url(https://resources.whatwg.org/browser-logos/opera-mini.png); }
            .caniuse-status > .support > .op_mob::before { background-image: url(https://resources.whatwg.org/browser-logos/opera.svg); }
            .caniuse-status > .support > .opera::before { background-image: url(https://resources.whatwg.org/browser-logos/opera.svg); }
            .caniuse-status > .support > .safari::before { background-image: url(https://resources.whatwg.org/browser-logos/safari.png); }
            .caniuse-status > .support > .samsung::before { background-image: url(https://resources.whatwg.org/browser-logos/samsung.svg); }
            .caniuse-status > .caniuse { text-align: right; font-style: italic; }
            @media (max-width: 767px) {
                .caniuse-status.wrapped { width: 9em; height: auto; }
                .caniuse-status:not(.wrapped) { width: 1em; height: 1em; }
                .caniuse-status.wrapped > :not(input) { display: block; }
                .caniuse-status:not(.wrapped) > :not(input) { display: none; }
            }</style>
<style>/* style-counters */

body {
    counter-reset: example figure issue;
}
.issue {
    counter-increment: issue;
}
.issue:not(.no-marker)::before {
    content: "Issue " counter(issue);
}

.example {
    counter-increment: example;
}
.example:not(.no-marker)::before {
    content: "Example " counter(example);
}
.invalid.example:not(.no-marker)::before,
.illegal.example:not(.no-marker)::before {
    content: "Invalid Example" counter(example);
}

figcaption {
    counter-increment: figure;
}
figcaption:not(.no-marker)::before {
    content: "Figure " counter(figure) " ";
}</style>
<style>/* style-autolinks */

.css.css, .property.property, .descriptor.descriptor {
    color: #005a9c;
    font-size: inherit;
    font-family: inherit;
}
.css::before, .property::before, .descriptor::before {
    content: "‘";
}
.css::after, .property::after, .descriptor::after {
    content: "’";
}
.property, .descriptor {
    /* Don't wrap property and descriptor names */
    white-space: nowrap;
}
.type { /* CSS value <type> */
    font-style: italic;
}
pre .property::before, pre .property::after {
    content: "";
}
[data-link-type="property"]::before,
[data-link-type="propdesc"]::before,
[data-link-type="descriptor"]::before,
[data-link-type="value"]::before,
[data-link-type="function"]::before,
[data-link-type="at-rule"]::before,
[data-link-type="selector"]::before,
[data-link-type="maybe"]::before {
    content: "‘";
}
[data-link-type="property"]::after,
[data-link-type="propdesc"]::after,
[data-link-type="descriptor"]::after,
[data-link-type="value"]::after,
[data-link-type="function"]::after,
[data-link-type="at-rule"]::after,
[data-link-type="selector"]::after,
[data-link-type="maybe"]::after {
    content: "’";
}

[data-link-type].production::before,
[data-link-type].production::after,
.prod [data-link-type]::before,
.prod [data-link-type]::after {
    content: "";
}

[data-link-type=element],
[data-link-type=element-attr] {
    font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace;
    font-size: .9em;
}
[data-link-type=element]::before { content: "<" }
[data-link-type=element]::after  { content: ">" }

[data-link-type=biblio] {
    white-space: pre;
}</style>
<style>/* style-dfn-panel */

.dfn-panel {
    position: absolute;
    z-index: 35;
    height: auto;
    width: -webkit-fit-content;
    width: fit-content;
    max-width: 300px;
    max-height: 500px;
    overflow: auto;
    padding: 0.5em 0.75em;
    font: small Helvetica Neue, sans-serif, Droid Sans Fallback;
    background: #DDDDDD;
    color: black;
    border: outset 0.2em;
}
.dfn-panel:not(.on) { display: none; }
.dfn-panel * { margin: 0; padding: 0; text-indent: 0; }
.dfn-panel > b { display: block; }
.dfn-panel a { color: black; }
.dfn-panel a:not(:hover) { text-decoration: none !important; border-bottom: none !important; }
.dfn-panel > b + b { margin-top: 0.25em; }
.dfn-panel ul { padding: 0; }
.dfn-panel li { list-style: inside; }
.dfn-panel.activated {
    display: inline-block;
    position: fixed;
    left: .5em;
    bottom: 2em;
    margin: 0 auto;
    max-width: calc(100vw - 1.5em - .4em - .5em);
    max-height: 30vh;
}

.dfn-paneled { cursor: pointer; }
</style>
<style>/* style-syntax-highlighting */

.highlight:not(.idl) { background: hsl(24, 20%, 95%); }
code.highlight { padding: .1em; border-radius: .3em; }
pre.highlight, pre > code.highlight { display: block; padding: 1em; margin: .5em 0; overflow: auto; border-radius: 0; }
c-[a] { color: #990055 } /* Keyword.Declaration */
c-[b] { color: #990055 } /* Keyword.Type */
c-[c] { color: #708090 } /* Comment */
c-[d] { color: #708090 } /* Comment.Multiline */
c-[e] { color: #0077aa } /* Name.Attribute */
c-[f] { color: #669900 } /* Name.Tag */
c-[g] { color: #222222 } /* Name.Variable */
c-[k] { color: #990055 } /* Keyword */
c-[l] { color: #000000 } /* Literal */
c-[m] { color: #000000 } /* Literal.Number */
c-[n] { color: #0077aa } /* Name */
c-[o] { color: #999999 } /* Operator */
c-[p] { color: #999999 } /* Punctuation */
c-[s] { color: #a67f59 } /* Literal.String */
c-[t] { color: #a67f59 } /* Literal.String.Single */
c-[u] { color: #a67f59 } /* Literal.String.Double */
c-[cp] { color: #708090 } /* Comment.Preproc */
c-[c1] { color: #708090 } /* Comment.Single */
c-[cs] { color: #708090 } /* Comment.Special */
c-[kc] { color: #990055 } /* Keyword.Constant */
c-[kn] { color: #990055 } /* Keyword.Namespace */
c-[kp] { color: #990055 } /* Keyword.Pseudo */
c-[kr] { color: #990055 } /* Keyword.Reserved */
c-[ld] { color: #000000 } /* Literal.Date */
c-[nc] { color: #0077aa } /* Name.Class */
c-[no] { color: #0077aa } /* Name.Constant */
c-[nd] { color: #0077aa } /* Name.Decorator */
c-[ni] { color: #0077aa } /* Name.Entity */
c-[ne] { color: #0077aa } /* Name.Exception */
c-[nf] { color: #0077aa } /* Name.Function */
c-[nl] { color: #0077aa } /* Name.Label */
c-[nn] { color: #0077aa } /* Name.Namespace */
c-[py] { color: #0077aa } /* Name.Property */
c-[ow] { color: #999999 } /* Operator.Word */
c-[mb] { color: #000000 } /* Literal.Number.Bin */
c-[mf] { color: #000000 } /* Literal.Number.Float */
c-[mh] { color: #000000 } /* Literal.Number.Hex */
c-[mi] { color: #000000 } /* Literal.Number.Integer */
c-[mo] { color: #000000 } /* Literal.Number.Oct */
c-[sb] { color: #a67f59 } /* Literal.String.Backtick */
c-[sc] { color: #a67f59 } /* Literal.String.Char */
c-[sd] { color: #a67f59 } /* Literal.String.Doc */
c-[se] { color: #a67f59 } /* Literal.String.Escape */
c-[sh] { color: #a67f59 } /* Literal.String.Heredoc */
c-[si] { color: #a67f59 } /* Literal.String.Interpol */
c-[sx] { color: #a67f59 } /* Literal.String.Other */
c-[sr] { color: #a67f59 } /* Literal.String.Regex */
c-[ss] { color: #a67f59 } /* Literal.String.Symbol */
c-[vc] { color: #0077aa } /* Name.Variable.Class */
c-[vg] { color: #0077aa } /* Name.Variable.Global */
c-[vi] { color: #0077aa } /* Name.Variable.Instance */
c-[il] { color: #000000 } /* Literal.Number.Integer.Long */
</style>
 <body class="h-entry">
  <div class="head">
   <p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
   <h1 class="p-name no-ref" id="title">CSS Overflow Module Level 3</h1>
   <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></span></h2>
   <details>
    <summary>Specification Metadata</summary>
    <div data-fill-with="spec-metadata">
     <dl>
      <dt>This version:
      <dd><a class="u-url" href="https://drafts.csswg.org/css-overflow-3/">https://drafts.csswg.org/css-overflow-3/</a>
      <dt>Latest published version:
      <dd><a href="https://www.w3.org/TR/css-overflow-3/">https://www.w3.org/TR/css-overflow-3/</a>
      <dt>Previous Versions:
      <dd><a href="https://www.w3.org/TR/2018/WD-css-overflow-3-20180731/" rel="prev">https://www.w3.org/TR/2018/WD-css-overflow-3-20180731/</a>
      <dd><a href="https://www.w3.org/TR/2016/WD-css-overflow-3-20160531/" rel="prev">https://www.w3.org/TR/2016/WD-css-overflow-3-20160531/</a>
      <dd><a href="https://www.w3.org/TR/2013/WD-css-overflow-3-20130418/" rel="prev">https://www.w3.org/TR/2013/WD-css-overflow-3-20130418/</a>
      <dt class="editor">Editors:
      <dd class="editor p-author h-card vcard" data-editor-id="15393"><a class="p-name fn u-url url" href="https://dbaron.org/">L. David Baron</a> (<a class="p-org org" href="https://www.mozilla.org/">Mozilla</a>)
      <dd class="editor p-author h-card vcard" data-editor-id="35400"><a class="p-name fn u-url url" href="http://fantasai.inkedblade.net/contact">Elika J. Etemad / fantasai</a> (<span class="p-org org">Invited Expert</span>)
      <dd class="editor p-author h-card vcard" data-editor-id="43241"><a class="p-name fn u-url url" href="http://florian.rivoal.net/">Florian Rivoal</a> (<span class="p-org org">On behalf of Bloomberg</span>)
      <dt>Suggest an Edit for this Spec:
      <dd><a href="https://github.com/w3c/csswg-drafts/blob/master/css-overflow-3/Overview.bs">GitHub Editor</a>
      <dt>Issue Tracking:
      <dd><a href="https://github.com/w3c/csswg-drafts/labels/css-overflow-3">GitHub Issues</a>
      <dt>Change Log:
      <dd><a href="https://hg.csswg.org/drafts/log/tip/css-overflow/Overview.bs">from 27 January 2015 to the present</a>
      <dd><a href="https://hg.csswg.org/drafts/log/tip/css-overflow/Overview.src.html">from 28 March 2013 to 27 January 2015</a>
      <dd><a href="https://hg.csswg.org/drafts/log/tip/css3-overflow/Overview.src.html">from 31 July 2012 to 27 March 2013</a>
     </dl>
    </div>
   </details>
   <div data-fill-with="warning"></div>
   <p class="copyright" data-fill-with="copyright"><a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 1970 <a href="https://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href="https://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="https://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="https://www.keio.ac.jp/">Keio</a>, <a href="https://ev.buaa.edu.cn/">Beihang</a>). W3C <a href="https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document">permissive document license</a> rules apply. </p>
   <hr title="Separator for header">
  </div>
  <div class="p-summary" data-fill-with="abstract">
   <h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="content">Abstract</span></h2>
   <p>This module contains the features of CSS relating to scrollable overflow handling in visual media.</p>
    <a href="https://www.w3.org/TR/CSS/">CSS</a> is a language for describing the rendering of structured documents
(such as HTML and XML)
on screen, on paper, etc. 
  </div>
  <h2 class="no-num no-toc no-ref heading settled" id="status"><span class="content">Status of this document</span></h2>
  <div data-fill-with="status">
   <p> This is a public copy of the editors’ draft.
	It is provided for discussion only and may change at any moment.
	Its publication here does not imply endorsement of its contents by W3C.
	Don’t cite this document other than as work in progress. </p>
   <p> <a href="https://github.com/w3c/csswg-drafts/issues">GitHub Issues</a> are preferred for discussion of this specification.
	When filing an issue, please put the text “css-overflow” in the title,
	preferably like this:
	“[css-overflow] <i data-lt>…summary of comment…</i>”.
	All issues and comments are <a href="https://lists.w3.org/Archives/Public/public-css-archive/">archived</a>,
	and there is also a <a href="https://lists.w3.org/Archives/Public/www-style/">historical archive</a>. </p>
   <p> This document was produced by the <a href="https://www.w3.org/Style/CSS/">CSS Working Group</a>. </p>
   <p> This document was produced by a group operating under
	the <a href="https://www.w3.org/Consortium/Patent-Policy/">W3C Patent Policy</a>.
	W3C maintains a <a href="https://www.w3.org/2004/01/pp-impl/32061/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group;
	that page also includes instructions for disclosing a patent.
	An individual who has actual knowledge of a patent which the individual believes contains <a href="https://www.w3.org/Consortium/Patent-Policy/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="https://www.w3.org/Consortium/Patent-Policy/#sec-Disclosure">section 6 of the W3C Patent Policy</a>. </p>
   <p> This document is governed by the <a href="https://www.w3.org/2019/Process-20190301/" id="w3c_process_revision">1 March 2019 W3C Process Document</a>. </p>
   <p></p>
   <p><strong>This update trims away most of the experimental new ideas

for handling overflow that were described in the <a href="https://www.w3.org/TR/2013/WD-css-overflow-3-20130418/">previous Working Draft</a>.
These ideas are not abandoned; they are merely <a href="https://drafts.csswg.org/css-overflow/">deferred until Level 4</a>.</strong> Level 3 is focused solely on completing a spec for the existing, shipped <a class="property" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow">overflow</a> features;
work will resume on fragmented overflow and other fun things once this is completed.</p>
  </div>
  <div data-fill-with="at-risk">
   <p>The following features are at-risk, and may be dropped during the CR period: </p>
   <ul>
    <li>the <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines">max-lines</a> property
   </ul>
   <p>“At-risk” is a W3C Process term-of-art, and does not necessarily imply that the feature is in danger of being dropped or delayed. It means that the WG believes the feature may have difficulty being interoperably implemented in a timely manner, and marking it as such allows the WG to drop the feature if necessary when transitioning to the Proposed Rec stage, without having to publish a new Candidate Rec without the feature first.</p>
  </div>
  <nav data-fill-with="table-of-contents" id="toc">
   <h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2>
   <ol class="toc" role="directory">
    <li><a href="#intro"><span class="secno">1</span> <span class="content"> Introduction</span></a>
    <li>
     <a href="#overflow-concepts"><span class="secno">2</span> <span class="content"> Types of Overflow</span></a>
     <ol class="toc">
      <li><a href="#ink"><span class="secno">2.1</span> <span class="content">Ink Overflow</span></a>
      <li><a href="#scrollable"><span class="secno">2.2</span> <span class="content"> Scrollable Overflow</span></a>
     </ol>
    <li>
     <a href="#overflow-properties"><span class="secno">3</span> <span class="content"> Scrolling and Clipping Overflow: the <span class="property">overflow-x</span>, <span class="property">overflow-y</span>, and <span class="property">overflow</span> properties</span></a>
     <ol class="toc">
      <li><a href="#static-media"><span class="secno">3.1</span> <span class="content"> Overflow in Print and Other Static Media</span></a>
      <li><a href="#scrollbar-layout"><span class="secno">3.2</span> <span class="content"> Scrollbars and Layout</span></a>
      <li><a href="#scrolling-direction"><span class="secno">3.3</span> <span class="content"> Scrolling Origin, Direction, and Restriction</span></a>
      <li><a href="#overflow-propagation"><span class="secno">3.4</span> <span class="content"> Overflow Viewport Propagation</span></a>
      <li><a href="#logical"><span class="secno">3.5</span> <span class="content"> Flow Relative Properties: the <span class="property">overflow-block</span> and <span class="property">overflow-inline</span> properties</span></a>
     </ol>
    <li>
     <a href="#auto-ellipsis"><span class="secno">4</span> <span class="content"> Automatic Ellipses</span></a>
     <ol class="toc">
      <li><a href="#text-overflow"><span class="secno">4.1</span> <span class="content"> Overflow Ellipsis: the <span class="property">text-overflow</span> property</span></a>
      <li><a href="#block-ellipsis"><span class="secno">4.2</span> <span class="content"> Indicating Block-Axis Overflow: the <span class="property">block-ellipsis</span> property</span></a>
     </ol>
    <li>
     <a href="#fragmentation"><span class="secno">5</span> <span class="content"> Fragmenting Overflow</span></a>
     <ol class="toc">
      <li>
       <a href="#line-clamp"><span class="secno">5.1</span> <span class="content"> Limiting Visible Lines: the <span class="property">line-clamp</span> shorthand property</span></a>
       <ol class="toc">
        <li><a href="#webkit-line-clamp"><span class="secno">5.1.1</span> <span class="content"> Legacy compatibility</span></a>
       </ol>
      <li><a href="#max-lines"><span class="secno">5.2</span> <span class="content"> Forcing a Break After a Set Number of Lines: the <span class="property">max-lines</span> property</span></a>
      <li><a href="#continue"><span class="secno">5.3</span> <span class="content"> Fragmentation of Overflow: the <span class="property">continue</span> property</span></a>
     </ol>
    <li><a href="#priv-sec"><span class="secno">6</span> <span class="content">Privacy and Security Considerations</span></a>
    <li><a href="#acknowledgments"><span class="secno"></span> <span class="content"> Acknowledgments</span></a>
    <li>
     <a href="#conformance"><span class="secno"></span> <span class="content"> Conformance</span></a>
     <ol class="toc">
      <li><a href="#document-conventions"><span class="secno"></span> <span class="content"> Document conventions</span></a>
      <li><a href="#conform-classes"><span class="secno"></span> <span class="content"> Conformance classes</span></a>
      <li>
       <a href="#conform-responsible"><span class="secno"></span> <span class="content"> Requirements for Responsible Implementation of CSS</span></a>
       <ol class="toc">
        <li><a href="#conform-partial"><span class="secno"></span> <span class="content"> Partial Implementations</span></a>
        <li><a href="#conform-future-proofing"><span class="secno"></span> <span class="content"> Implementations of Unstable and Proprietary Features</span></a>
        <li><a href="#conform-testing"><span class="secno"></span> <span class="content"> Implementations of CR-level Features</span></a>
       </ol>
     </ol>
    <li>
     <a href="#index"><span class="secno"></span> <span class="content">Index</span></a>
     <ol class="toc">
      <li><a href="#index-defined-here"><span class="secno"></span> <span class="content">Terms defined by this specification</span></a>
      <li><a href="#index-defined-elsewhere"><span class="secno"></span> <span class="content">Terms defined by reference</span></a>
     </ol>
    <li>
     <a href="#references"><span class="secno"></span> <span class="content">References</span></a>
     <ol class="toc">
      <li><a href="#normative"><span class="secno"></span> <span class="content">Normative References</span></a>
      <li><a href="#informative"><span class="secno"></span> <span class="content">Informative References</span></a>
     </ol>
    <li><a href="#property-index"><span class="secno"></span> <span class="content">Property Index</span></a>
    <li><a href="#issues-index"><span class="secno"></span> <span class="content">Issues Index</span></a>
   </ol>
  </nav>
  <main>
   <h2 class="heading settled" data-level="1" id="intro"><span class="secno">1. </span><span class="content"> Introduction</span><a class="self-link" href="#intro"></a></h2>
   <p>In CSS Level 1 <a data-link-type="biblio" href="#biblio-css1">[CSS1]</a>, placing more content than would fit
	inside an element with a specified size
	was generally an authoring error.
	Doing so caused the content to extend
	outside the bounds of the element,
	which would likely cause
	that content to overlap with other elements.</p>
   <p>CSS Level 2 <a data-link-type="biblio" href="#biblio-css21">[CSS21]</a> introduced the <a class="property" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow①">overflow</a> property,
	which allows authors to have overflow be handled by scrolling,
	which means it is no longer an authoring error.
	It also allows authors to specify
	that overflow is handled by clipping,
	which makes sense when the author’s intent
	is that the content not be shown.</p>
   <p>This specification introduces the long-standing de-facto <a class="property" data-link-type="propdesc" href="#propdef-overflow-x" id="ref-for-propdef-overflow-x">overflow-x</a> and <a class="property" data-link-type="propdesc" href="#propdef-overflow-y" id="ref-for-propdef-overflow-y">overflow-y</a> properties,
	adds a <a class="css" data-link-type="maybe" href="#valdef-overflow-clip" id="ref-for-valdef-overflow-clip">clip</a> value,
	and defines overflow handling more fully.</p>
   <p>[Something something <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines①">max-lines</a>.]</p>
   <p class="note" role="note"><span>Note:</span> This specification also reproduces the definition of the <a class="property" data-link-type="propdesc" href="#propdef-text-overflow" id="ref-for-propdef-text-overflow">text-overflow</a> property
	previously defined in <a data-link-type="biblio" href="#biblio-css-ui-3">[CSS-UI-3]</a>,
	with no addition or modification,
	in order to present <span class="property" id="ref-for-propdef-text-overflow①">text-overflow</span> and <a class="property" data-link-type="propdesc" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis">block-ellipsis</a> toghether.</p>
   <h2 class="heading settled" data-level="2" id="overflow-concepts"><span class="secno">2. </span><span class="content"> Types of Overflow</span><a class="self-link" href="#overflow-concepts"></a></h2>
   <p>CSS uses the term <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="overflow">overflow</dfn> to describe
	the contents of a box
	that extend outside one of that box’s edges
	(i.e., its <i>content edge</i>, <i>padding edge</i>, <i>border edge</i>, or <i>margin edge</i>).
	The term might be interpreted as
	elements or features that cause this overflow,
	the non-rectangular region occupied by these features,
	or, more commonly, as
	the minimal rectangle that bounds that region.
	A box’s overflow is computed based on the layout and styling of the box itself
	and of all descendants whose <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#containing-block-chain" id="ref-for-containing-block-chain">containing block chain</a> includes the box.</p>
   <p>In most cases, <a data-link-type="dfn" href="#overflow" id="ref-for-overflow">overflow</a> can be computed for any box
	from the bounds and properties of that box itself,
	plus the <span id="ref-for-overflow①">overflow</span> of each of its children.
	However, this is not always the case; for example,
	when <a class="css" data-link-type="propdesc" href="https://drafts.csswg.org/css-transforms-2/#propdef-transform-style" id="ref-for-propdef-transform-style">transform-style: preserve-3d</a> <a data-link-type="biblio" href="#biblio-css3-transforms">[CSS3-TRANSFORMS]</a> is used on
	some of the children, any of their descendants with <span class="css" id="ref-for-propdef-transform-style①">transform-style: preserve-3d</span> must also be examined.</p>
   <p>There are two different types of overflow,
	which are used for different purposes by the UA:</p>
   <ul>
    <li><a data-link-type="dfn" href="#ink-overflow" id="ref-for-ink-overflow">ink overflow</a> 
    <li><a data-link-type="dfn" href="#scrollable-overflow" id="ref-for-scrollable-overflow">scrollable overflow</a> 
   </ul>
   <h3 class="heading settled" data-level="2.1" id="ink"><span class="secno">2.1. </span><span class="content">Ink Overflow</span><a class="self-link" href="#ink"></a></h3>
   <p>The <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="ink-overflow">ink overflow</dfn> of a box
	is the part of that box and its contents that
	creates a visual effect outside of
	the box’s border box.
	Ink overflow is the overflow of painting effects defined to not affect layout
	or otherwise extend the <a data-link-type="dfn" href="#scrollable-overflow-region" id="ref-for-scrollable-overflow-region">scrollable overflow region</a>,
	such as <a href="https://www.w3.org/TR/css-backgrounds/#box-shadow">box shadows</a>, <a href>border images</a>, <a href="https://www.w3.org/TR/css-text-decor-3/">text decoration</a>,
	overhanging glyphs (with negative side bearings,
	or with ascenders/descenders extending outside the em box), <a href="https://www.w3.org/TR/CSS2/ui.html#dynamic-outlines">outlines</a>,
	etc.</p>
   <p>Since some effects in CSS (for example, the blurs in <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-decor-3/#propdef-text-shadow" id="ref-for-propdef-text-shadow">text-shadow</a> <a data-link-type="biblio" href="#biblio-css-text-3">[CSS-TEXT-3]</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#propdef-box-shadow" id="ref-for-propdef-box-shadow">box-shadow</a> <a data-link-type="biblio" href="#biblio-css-backgrounds-3">[CSS-BACKGROUNDS-3]</a>,
	which are theoretically infinite)
	do not define what visual extent they cover, the extent
	of the <a data-link-type="dfn" href="#ink-overflow" id="ref-for-ink-overflow①">ink overflow</a> is undefined.</p>
   <p>The <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="ink-overflow-region">ink overflow region</dfn> is the non-rectangular area
	occupied by the <a data-link-type="dfn" href="#ink-overflow" id="ref-for-ink-overflow②">ink overflow</a> of a box and its contents,
	and the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="ink-overflow-rectangle">ink overflow rectangle</dfn> is
	the minimal rectangle whose axes are aligned to the box’s axes
	and that contains the <a data-link-type="dfn" href="#ink-overflow-region" id="ref-for-ink-overflow-region">ink overflow region</a>.
	Note that the <a data-link-type="dfn" href="#ink-overflow-rectangle" id="ref-for-ink-overflow-rectangle">ink overflow rectangle</a> is a rectangle
	in the box’s coordinate system, but might be non-rectangular
	in other coordinate systems due to transforms. <a data-link-type="biblio" href="#biblio-css3-transforms">[CSS3-TRANSFORMS]</a></p>
   <h3 class="heading settled" data-level="2.2" id="scrollable"><span class="secno">2.2. </span><span class="content"> Scrollable Overflow</span><a class="self-link" href="#scrollable"></a></h3>
   <p>The <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="scrollable-overflow">scrollable overflow</dfn> of a box is the
	set of things extending outside of that box’s padding edge
	for which a scrolling mechanism needs to be provided.</p>
   <p>The <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="scrollable-overflow-region">scrollable overflow region</dfn> is the non-rectangular region
	occupied by the <a data-link-type="dfn" href="#scrollable-overflow" id="ref-for-scrollable-overflow①">scrollable overflow</a>, and the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="scrollable-overflow-rectangle">scrollable overflow rectangle</dfn> is
	the minimal rectangle whose axes are aligned to the box’s axes
	and that contains the <a data-link-type="dfn" href="#scrollable-overflow-region" id="ref-for-scrollable-overflow-region①">scrollable overflow region</a>.</p>
   <p>The <a data-link-type="dfn" href="#scrollable-overflow-region" id="ref-for-scrollable-overflow-region②">scrollable overflow region</a> is the union of:</p>
   <ul>
    <li>
      the box’s own content and padding areas 
     <div class="issue" id="issue-ba33a276">
      <a class="self-link" href="#issue-ba33a276"></a> There’s disagreement on the scrolling model.
				2.1 apparently defined that you scrolled the *content* area;
				the content would overflow the content-box,
				and you would union that overflow with the content box to find the scrollable area.
				In particular, this means that the content would be offset by the start-sides padding,
				but if it overflowed,
				it would go right to the edge on the end sides.
				This is what Firefox and IE do. 
      <p>At least some authors (and spec authors)
				instead have the mental model that the padding box is what’s scrollable,
				so when you scroll to the end of the overflow,
				there’s the right/bottom padding.
				Chrome/WebKit do this for the block axis, at least.
				They’re somewhat inconsistent for the inline axis;
				there’s something weird about how they handle lineboxes.</p>
      <p>It seems that the block-axis padding is probably web-compatible to honor.
				It’s unclear that the inline-axis padding will be.
				Further experimentation is needed.</p>
     </div>
    <li> all line boxes directly contained by the box 
    <li>
      the border boxes
			of all boxes for which it is the containing block
			and whose border boxes are positioned not wholly outside
			its <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#block-start" id="ref-for-block-start">block-start</a> or <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#inline-start" id="ref-for-inline-start">inline-start</a> padding edges,
			accounting for transforms by projecting each box onto
			the plane of the element that establishes its <a data-link-type="dfn" href="https://drafts.csswg.org/css-transforms-2/#3d-rendering-context" id="ref-for-3d-rendering-context">3D rendering context</a>. <a data-link-type="biblio" href="#biblio-css3-transforms">[CSS3-TRANSFORMS]</a> 
     <p class="issue" id="issue-df7ef6c3"><a class="self-link" href="#issue-df7ef6c3"></a> Is this description of handling transforms
			sufficiently accurate?</p>
    <li>
      the <a data-link-type="dfn" href="#scrollable-overflow-region" id="ref-for-scrollable-overflow-region③">scrollable overflow regions</a> of all of the above boxes
			(accounting for transforms as described above),
			provided they themselves have <a class="css" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow②">overflow: visible</a> (i.e. do not themselves trap the overflow)
			and that <a data-link-type="dfn" href="#scrollable-overflow" id="ref-for-scrollable-overflow②">scrollable overflow</a> is not already clipped
			(e.g. by the <a class="property" data-link-type="propdesc" href="https://drafts.fxtf.org/css-masking-1/#propdef-clip" id="ref-for-propdef-clip">clip</a> property or the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-contain-1/#propdef-contain" id="ref-for-propdef-contain">contain</a> property). 
     <p class="issue" id="issue-3eeb0988"><a class="self-link" href="#issue-3eeb0988"></a> should <a class="css" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow③">overflow: clip</a> also clip the <a data-link-type="dfn" href="#scrollable-overflow" id="ref-for-scrollable-overflow③">scrollable overflow</a> or should it remain a pure paint-time operation,
			which would mean that scrollable overflow, while invisible, would still be scrollable.</p>
     <p class="note" role="note"><span>Note:</span> The <a class="property" data-link-type="propdesc">mask-*</a> properties <a data-link-type="biblio" href="#biblio-css-masking-1">[CSS-MASKING-1]</a> do not affect the <a data-link-type="dfn" href="#scrollable-overflow-region" id="ref-for-scrollable-overflow-region④">scrollable overflow region</a>.</p>
     <p class="issue" id="issue-801c4d89"><a class="self-link" href="#issue-801c4d89"></a> Need to evaluate compat of honoring or ignoring <a class="property" data-link-type="propdesc" href="https://drafts.fxtf.org/css-masking-1/#propdef-clip" id="ref-for-propdef-clip①">clip</a> and <a class="property" data-link-type="propdesc" href="https://drafts.fxtf.org/css-masking-1/#propdef-clip-path" id="ref-for-propdef-clip-path">clip-path</a>.</p>
    <li>
      Padding on the end-edge sides of the <a data-link-type="dfn" href="#scrollable-overflow-rectangle" id="ref-for-scrollable-overflow-rectangle">scrollable overflow rectangle</a> representing the end-side padding applied to the <a data-link-type="dfn" href="#scroll-container" id="ref-for-scroll-container">scroll container</a>,
			added such that its content can be scrolled to a position
			that would satisfy the requirements of <a class="css" data-link-type="propdesc" href="https://drafts.csswg.org/css-align-3/#propdef-place-content" id="ref-for-propdef-place-content">place-content: end</a> alignment.
			Including this padding is optional for <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#block-container" id="ref-for-block-container">block containers</a> in any axis whose corresponding <a data-link-type="dfn" href="https://drafts.csswg.org/css-align-3/#content-distribution-properties" id="ref-for-content-distribution-properties">content-distribution property</a> (<a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-align-3/#propdef-align-content" id="ref-for-propdef-align-content">align-content</a>/<a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-align-3/#propdef-justify-content" id="ref-for-propdef-justify-content">justify-content</a>)
			is <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-align-3/#valdef-justify-content-normal" id="ref-for-valdef-justify-content-normal">normal</a>. 
     <p class="issue" id="issue-210e5030"><a class="self-link" href="#issue-210e5030"></a> It’s not yet clear if including the end-side padding in the scrollable layer of block containers is Web-compatible, so this clause is under investigation.
			It appears that Chrome and Safari include such padding <a href="https://bug748518.bmoattachments.org/attachment.cgi?id=618078">in the block axis</a>;
			and the behavior in the inline axis is <a href="http://jsbin.com/digadoyohi/1/edit?html,css,output">not</a> <a href="http://jsbin.com/vexahocayi/1/edit?html,css,output">clear</a>. <a href="https://github.com/w3c/csswg-drafts/issues/129">&lt;https://github.com/w3c/csswg-drafts/issues/129></a></p>
    <li> the margin areas of <a data-link-type="dfn" href="https://drafts.csswg.org/css-grid-1/#grid-item" id="ref-for-grid-item">grid item</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-flexbox-1/#flex-item" id="ref-for-flex-item">flex item</a> boxes
			for which the box establishes a containing block.
			The UA may <em>additionally</em> include
			the margin areas of other boxes
			for which the box establishes a containing block;
			however,
			the conditions under which such margin areas are included
			is undefined in this level. <span class="issue" id="issue-b9c7269c"><a class="self-link" href="#issue-b9c7269c"></a>This needs further testing and investigation;
			is therefore deferred in this draft.</span> 
   </ul>
   <p class="note" role="note"><span>Note:</span> The <a data-link-type="dfn" href="#scrollable-overflow-rectangle" id="ref-for-scrollable-overflow-rectangle①">scrollable overflow rectangle</a> is always a rectangle
	in the box’s own coordinate system, but might be non-rectangular
	in other coordinate systems due to transforms <a data-link-type="biblio" href="#biblio-css3-transforms">[CSS3-TRANSFORMS]</a>.
	This means scrollbars can sometimes appear when not actually necessary.</p>
   <h2 class="heading settled" data-level="3" id="overflow-properties"><span class="secno">3. </span><span class="content"> Scrolling and Clipping Overflow: the <a class="property" data-link-type="propdesc" href="#propdef-overflow-x" id="ref-for-propdef-overflow-x①">overflow-x</a>, <a class="property" data-link-type="propdesc" href="#propdef-overflow-y" id="ref-for-propdef-overflow-y①">overflow-y</a>, and <a class="property" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow④">overflow</a> properties</span><a class="self-link" href="#overflow-properties"></a></h2>
   <p>These properties specify whether a box’s content
	(including any <a data-link-type="dfn" href="#ink-overflow" id="ref-for-ink-overflow③">ink overflow</a>)
	is clipped to its padding edge,
	and if so,
	whether it is a <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="scroll-container">scroll container</dfn> that allows the user to scroll clipped parts of its <a data-link-type="dfn" href="#scrollable-overflow-region" id="ref-for-scrollable-overflow-region⑤">scrollable overflow region</a> into view.
	The visual viewport of the <a data-link-type="dfn" href="#scroll-container" id="ref-for-scroll-container①">scroll container</a> (through which the <span id="ref-for-scrollable-overflow-region⑥">scrollable overflow region</span> can be viewed)
	coincides with its padding box,
	and is called the <dfn data-dfn-type="dfn" data-export id="scrollport">scrollport<a class="self-link" href="#scrollport"></a></dfn>.</p>
   <table class="def propdef" data-link-for-hint="overflow-x">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-overflow-x">overflow-x</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-overflow-y">overflow-y</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">visible <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one">|</a> hidden <span id="ref-for-comb-one①">|</span> clip <span id="ref-for-comb-one②">|</span> scroll <span id="ref-for-comb-one③">|</span> auto 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td><a class="css" data-link-type="maybe" href="#valdef-overflow-visible" id="ref-for-valdef-overflow-visible">visible</a> 
     <tr>
      <th>Applies to:
      <td>block containers <a data-link-type="biblio" href="#biblio-css21">[CSS21]</a>, flex containers <a data-link-type="biblio" href="#biblio-css3-flexbox">[CSS3-FLEXBOX]</a>, and grid containers <a data-link-type="biblio" href="#biblio-css3-grid-layout">[CSS3-GRID-LAYOUT]</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>no 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified, except with <a class="css" data-link-type="maybe" href="#valdef-overflow-visible" id="ref-for-valdef-overflow-visible①">visible</a>/<a class="css" data-link-type="maybe" href="#valdef-overflow-clip" id="ref-for-valdef-overflow-clip①">clip</a> computing to <a class="css" data-link-type="maybe" href="#valdef-overflow-auto" id="ref-for-valdef-overflow-auto">auto</a>/<a class="css" data-link-type="maybe" href="#valdef-overflow-hidden" id="ref-for-valdef-overflow-hidden">hidden</a> (respectively) if one of <a class="property" data-link-type="propdesc" href="#propdef-overflow-x" id="ref-for-propdef-overflow-x②">overflow-x</a> or <a class="property" data-link-type="propdesc" href="#propdef-overflow-y" id="ref-for-propdef-overflow-y②">overflow-y</a> is neither <span class="css" id="ref-for-valdef-overflow-visible②">visible</span> nor <span class="css" id="ref-for-valdef-overflow-clip②">clip</span> 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete 
   </table>
   <p>The <a class="property" data-link-type="propdesc" href="#propdef-overflow-x" id="ref-for-propdef-overflow-x③">overflow-x</a> property specifies
	the handling of <a data-link-type="dfn" href="#overflow" id="ref-for-overflow②">overflow</a> in the horizontal direction
	(i.e., overflow from the left and right sides of the box),
	and the <a class="property" data-link-type="propdesc" href="#propdef-overflow-y" id="ref-for-propdef-overflow-y③">overflow-y</a> property specifies the handling
	of <span id="ref-for-overflow③">overflow</span> in the vertical direction
	(i.e., overflow from the top and bottom sides of the box).</p>
   <table class="def propdef" data-link-for-hint="overflow">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-overflow">overflow</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">[ visible <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④">|</a> hidden <span id="ref-for-comb-one⑤">|</span> clip <span id="ref-for-comb-one⑥">|</span> scroll <span id="ref-for-comb-one⑦">|</span> auto ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range">{1,2}</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>visible 
     <tr>
      <th>Applies to:
      <td>block containers <a data-link-type="biblio" href="#biblio-css21">[CSS21]</a>, flex containers <a data-link-type="biblio" href="#biblio-css3-flexbox">[CSS3-FLEXBOX]</a>, and grid containers <a data-link-type="biblio" href="#biblio-css3-grid-layout">[CSS3-GRID-LAYOUT]</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>no 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>see individual properties 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete 
     <tr>
      <th>Canonical order:
      <td>per grammar 
   </table>
   <p>The <a class="property" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow⑤">overflow</a> property is a shorthand property
	that sets the specified values of <a class="property" data-link-type="propdesc" href="#propdef-overflow-x" id="ref-for-propdef-overflow-x④">overflow-x</a> and <a class="property" data-link-type="propdesc" href="#propdef-overflow-y" id="ref-for-propdef-overflow-y④">overflow-y</a> in that order.
	If the second value is omitted, it is copied from the first.</p>
   <p>Values have the following meanings:</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="overflow, overflow-x, overflow-y" data-dfn-type="value" data-export id="valdef-overflow-visible">visible</dfn> 
    <dd> There is no special handling of overflow, that is,
			the box’s content is rendered outside the box if positioned there.
			The box is not a <a data-link-type="dfn" href="#scroll-container" id="ref-for-scroll-container②">scroll container</a>. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="overflow, overflow-x, overflow-y" data-dfn-type="value" data-export id="valdef-overflow-hidden">hidden</dfn> 
    <dd> This value indicates that
			the box’s content is clipped to its padding box
			and that the UA must not provide any scrolling user interface
			to view the content outside the clipping region,
			nor allow scrolling by direct intervention of the user,
			such as dragging on a touch screen
			or using the scrolling wheel on a mouse.
			However, the content must still be scrollable programatically,
			for example using the mechanisms defined in <a data-link-type="biblio" href="#biblio-cssom-view">[CSSOM-VIEW]</a>,
			and the box is therefore still a <a data-link-type="dfn" href="#scroll-container" id="ref-for-scroll-container③">scroll container</a>. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="overflow, overflow-x, overflow-y" data-dfn-type="value" data-export id="valdef-overflow-clip">clip</dfn> 
    <dd>
      Like <a class="css" data-link-type="maybe" href="#valdef-overflow-hidden" id="ref-for-valdef-overflow-hidden①">hidden</a>,
			this value indicates that
			the box’s content is clipped to its padding box
			and that no scrolling user interface should be provided by the UA
			to view the content outside the clipping region.
			In addition, unlike <a class="css" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow⑥">overflow: hidden</a> which still allows programmatic scrolling, <span class="css" id="ref-for-propdef-overflow⑦">overflow: clip</span> forbids scrolling entirely,
			through any mechanism,
			and therefore the box is not a <a data-link-type="dfn" href="#scroll-container" id="ref-for-scroll-container④">scroll container</a>. 
     <p>Unlike <a class="css" data-link-type="maybe" href="#valdef-overflow-hidden" id="ref-for-valdef-overflow-hidden②">hidden</a>, this value <strong>does not</strong> cause
			the element to establish a new formatting context.</p>
     <p class="note" role="note"><span>Note:</span> Authors who also want the box to establish a formatting context
			may use <a class="css" data-link-type="propdesc" href="https://drafts.csswg.org/css-display-3/#propdef-display" id="ref-for-propdef-display">display: flow-root</a> together with <a class="css" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow⑧">overflow: clip</a>.</p>
    <dt><dfn class="dfn-paneled css" data-dfn-for="overflow, overflow-x, overflow-y" data-dfn-type="value" data-export id="valdef-overflow-scroll">scroll</dfn> 
    <dd> This value indicates that
			the content is clipped to the padding box,
			but can be scrolled into view
			(and therefore the box is a <a data-link-type="dfn" href="#scroll-container" id="ref-for-scroll-container⑤">scroll container</a>).
			Furthermore, if the user agent uses a scrolling mechanism
			that is visible on the screen (such as a scroll bar or a panner),
			that mechanism should be displayed
			whether or not any of its content is clipped.
			This avoids any problem with scrollbars appearing
			and disappearing in a dynamic environment.
			When the target medium is <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/mediaqueries-4/#valdef-media-print" id="ref-for-valdef-media-print">print</a>,
			overflowing content may be printed;
			it is not defined where it may be printed. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="overflow, overflow-x, overflow-y" data-dfn-type="value" data-export id="valdef-overflow-auto">auto</dfn> 
    <dd> Like <a class="css" data-link-type="maybe" href="#valdef-overflow-scroll" id="ref-for-valdef-overflow-scroll">scroll</a> when the box has <a data-link-type="dfn" href="#scrollable-overflow" id="ref-for-scrollable-overflow④">scrollable overflow</a>;
			like <a class="css" data-link-type="maybe" href="#valdef-overflow-hidden" id="ref-for-valdef-overflow-hidden③">hidden</a> otherwise.
			Thus, if the user agent uses a scrolling mechanism
			that is visible on the screen (such as a scroll bar or a panner),
			that mechanism will only be displayed
			if there is overflow. 
   </dl>
   <p>If the computed value of <a class="property" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow⑨">overflow</a> on a <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#block-box" id="ref-for-block-box">block box</a> is neither <a class="css" data-link-type="maybe" href="#valdef-overflow-visible" id="ref-for-valdef-overflow-visible③">visible</a> nor <a class="css" data-link-type="maybe" href="#valdef-overflow-clip" id="ref-for-valdef-overflow-clip③">clip</a> nor a combination thereof,
	it <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#establish-an-independent-formatting-context" id="ref-for-establish-an-independent-formatting-context">establishes an independent formatting context</a> for its contents.</p>
   <h3 class="heading settled" data-level="3.1" id="static-media"><span class="secno">3.1. </span><span class="content"> Overflow in Print and Other Static Media</span><a class="self-link" href="#static-media"></a></h3>
   <p class="advisement"> Since scrolling is not possible in static media
		(such as print)
		authors should be careful to make content accessible in such media,
		for example by using <span class="css">@media print, (update: none) { … }</span> to adjust layout such that all relevant content
		is simultaneously visible. </p>
   <p>On <a data-link-type="dfn" href="#scroll-container" id="ref-for-scroll-container⑥">scroll containers</a> in non-interactive media
	with an <a class="property" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow①⓪">overflow</a> value of <a class="css" data-link-type="maybe" href="#valdef-overflow-auto" id="ref-for-valdef-overflow-auto①">auto</a> or <a class="css" data-link-type="maybe" href="#valdef-overflow-scroll" id="ref-for-valdef-overflow-scroll①">scroll</a> (but not <a class="css" data-link-type="maybe" href="#valdef-overflow-hidden" id="ref-for-valdef-overflow-hidden④">hidden</a>)
	UAs may display an indication of any scrollable overflow,
	such as by displaying scrollbars
	or an ellipsis.</p>
   <p class="note" role="note"><span>Note:</span> Not all paged media is non-interactive
	for example, e-book readers page content,
	but are interactive.</p>
   <h3 class="heading settled" data-level="3.2" id="scrollbar-layout"><span class="secno">3.2. </span><span class="content"> Scrollbars and Layout</span><a class="self-link" href="#scrollbar-layout"></a></h3>
   <p>In the case of a scrollbar being placed on an edge of the element’s box,
	it should be inserted between the inner border edge
	and the outer padding edge.
	Any space taken up by the scrollbars should be
	taken out of (subtracted from the dimensions of)
	the containing block formed by the element with the scrollbars.</p>
   <p class="issue" id="issue-1c721802"><a class="self-link" href="#issue-1c721802"></a> import examples from <a data-link-type="biblio" href="#biblio-css3-box">[CSS3-BOX]</a>.</p>
   <h3 class="heading settled" data-level="3.3" id="scrolling-direction"><span class="secno">3.3. </span><span class="content"> Scrolling Origin, Direction, and Restriction</span><a class="self-link" href="#scrolling-direction"></a></h3>
   <p>The <dfn data-dfn-type="dfn" data-export id="initial-scroll-position">initial scroll position<a class="self-link" href="#initial-scroll-position"></a></dfn>,
	that is, the initial position of
	the box’s <a data-link-type="dfn" href="#scrollable-overflow-region" id="ref-for-scrollable-overflow-region⑦">scrollable overflow region</a> with respect to its border box,
	prior to any user or programmatic scrolling that changes it,
	is dependent on the box’s <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#writing-mode" id="ref-for-writing-mode">writing mode</a>,
	and is by default the <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#block-start" id="ref-for-block-start①">block-start</a>/<a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#inline-start" id="ref-for-inline-start①">inline-start</a> edge
	of the box’s <a data-link-type="dfn" href="https://drafts.csswg.org/css-box-3/#padding-edge" id="ref-for-padding-edge">padding edge</a>.
	However, the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-align-3/#propdef-align-content" id="ref-for-propdef-align-content①">align-content</a> and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-align-3/#propdef-justify-content" id="ref-for-propdef-justify-content①">justify-content</a> properties <a data-link-type="biblio" href="#biblio-css-align-3">[CSS-ALIGN-3]</a> can be used to change this,
	see <a href="https://www.w3.org/TR/css3-align/#overflow-scroll-position">CSS Box Alignment 3 §5.3 Overflow and Scroll Positions</a>.</p>
   <p>Due to Web-compatibility constraints
	(caused by authors exploiting legacy bugs to surreptitiously hide content from visual readers but not search engines and/or speech output),
	UAs must clip the <a data-link-type="dfn" href="#scrollable-overflow-region" id="ref-for-scrollable-overflow-region⑧">scrollable overflow region</a> of <a data-link-type="dfn" href="#scroll-container" id="ref-for-scroll-container⑦">scroll containers</a> on the <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#block-start" id="ref-for-block-start②">block-start</a> and inline-start sides of the box
	(thereby behaving as if they had no <a data-link-type="dfn" href="#scrollable-overflow" id="ref-for-scrollable-overflow⑤">scrollable overflow</a> on that side).</p>
   <p>The viewport uses the <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#principal-writing-mode" id="ref-for-principal-writing-mode">principal writing mode</a> for these calculations.</p>
   <h3 class="heading settled" data-level="3.4" id="overflow-propagation"><span class="secno">3.4. </span><span class="content"> Overflow Viewport Propagation</span><a class="self-link" href="#overflow-propagation"></a></h3>
   <p>UAs must apply the <a class="property" data-link-type="propdesc">overflow-*</a> values
	set on the root element to the <span>viewport</span>.
	However,
	when the root element is an <a data-link-type="biblio" href="#biblio-html">[HTML]</a> <code><a data-link-type="element" href="https://html.spec.whatwg.org/multipage/semantics.html#the-html-element" id="ref-for-the-html-element">html</a></code> element
	(including <a href="https://html.spec.whatwg.org/multipage/introduction.html#html-vs-xhtml">XML syntax for HTML</a>)
	whose <a class="property" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow①①">overflow</a> value is <a class="css" data-link-type="maybe" href="#valdef-overflow-visible" id="ref-for-valdef-overflow-visible④">visible</a> (in both axes),
	and that element has a <code><a data-link-type="element" href="https://html.spec.whatwg.org/multipage/sections.html#the-body-element" id="ref-for-the-body-element">body</a></code> element as a child,
	user agents must instead apply the <span class="property">overflow-*</span> values
	of the first such child element to the viewport.
	The element from which the value is propagated must then have
	a used <span class="property" id="ref-for-propdef-overflow①②">overflow</span> value of <span class="css" id="ref-for-valdef-overflow-visible⑤">visible</span>.</p>
   <p>The overflow values are not propagated to the viewport if no boxes are
	generated for the element whose overflow values
	would be used for the viewport (for example, if the root element has
	display: none).</p>
   <p>If <a class="css" data-link-type="maybe" href="#valdef-overflow-visible" id="ref-for-valdef-overflow-visible⑥">visible</a> is applied to the viewport,
	it must be interpreted as <a class="css" data-link-type="maybe" href="#valdef-overflow-auto" id="ref-for-valdef-overflow-auto②">auto</a>.
	If <a class="css" data-link-type="maybe" href="#valdef-overflow-clip" id="ref-for-valdef-overflow-clip④">clip</a> is applied to the viewport,
	it must be interpreted as <a class="css" data-link-type="maybe" href="#valdef-overflow-hidden" id="ref-for-valdef-overflow-hidden⑤">hidden</a>.</p>
   <h3 class="heading settled" data-level="3.5" id="logical"><span class="secno">3.5. </span><span class="content"> Flow Relative Properties: the <a class="property" data-link-type="propdesc" href="#propdef-overflow-block" id="ref-for-propdef-overflow-block">overflow-block</a> and <a class="property" data-link-type="propdesc" href="#propdef-overflow-inline" id="ref-for-propdef-overflow-inline">overflow-inline</a> properties</span><a class="self-link" href="#logical"></a></h3>
   <p>The following properties are processed according to the same processing model
as the Flow-Relative box model properties defined in <a href="https://www.w3.org/TR/css-logical-1/#box">CSS Logical Properties 1 §4 Flow-Relative Box Model Properties</a>.</p>
   <table class="def propdef" data-link-for-hint="overflow-inline">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-overflow-inline">overflow-inline</dfn>, <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-overflow-block">overflow-block</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod"><a class="production" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow①③">&lt;'overflow'></a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>visible 
     <tr>
      <th>Applies to:
      <td>Same as <a class="property" data-link-type="propdesc" href="#propdef-overflow-x" id="ref-for-propdef-overflow-x⑤">overflow-x</a> and <a class="property" data-link-type="propdesc" href="#propdef-overflow-y" id="ref-for-propdef-overflow-y⑤">overflow-y</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>no 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>Same as <a class="property" data-link-type="propdesc" href="#propdef-overflow-x" id="ref-for-propdef-overflow-x⑥">overflow-x</a> and <a class="property" data-link-type="propdesc" href="#propdef-overflow-y" id="ref-for-propdef-overflow-y⑥">overflow-y</a> 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete 
   </table>
   <p>These properties correspond to the <a class="property" data-link-type="propdesc" href="#propdef-overflow-x" id="ref-for-propdef-overflow-x⑦">overflow-x</a> and <a class="property" data-link-type="propdesc" href="#propdef-overflow-y" id="ref-for-propdef-overflow-y⑦">overflow-y</a> properties.
  The mapping depends on the element’s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-4/#propdef-writing-mode" id="ref-for-propdef-writing-mode">writing-mode</a>.</p>
   <h2 class="heading settled" data-level="4" id="auto-ellipsis"><span class="secno">4. </span><span class="content"> Automatic Ellipses</span><a class="self-link" href="#auto-ellipsis"></a></h2>
   <h3 class="heading settled caniuse-paneled" data-level="4.1" id="text-overflow"><span class="secno">4.1. </span><span class="content"> Overflow Ellipsis: the <a class="property" data-link-type="propdesc" href="#propdef-text-overflow" id="ref-for-propdef-text-overflow②">text-overflow</a> property</span><a class="self-link" href="#text-overflow"></a></h3>
   <table class="def propdef" data-link-for-hint="text-overflow">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-text-overflow">text-overflow</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">clip <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧">|</a> ellipsis
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>clip
     <tr>
      <th>Applies to:
      <td>block containers
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>no
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>specified keyword
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>This property specifies rendering when inline content overflows
its <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#end" id="ref-for-end">end</a> line box edge
in the inline progression direction of its block container element ("the block")
that has <a class="property" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow①④">overflow</a> other than <a class="css" data-link-type="maybe" href="#valdef-overflow-visible" id="ref-for-valdef-overflow-visible⑦">visible</a>.</p>
   <p>Text can overflow for example when it is prevented from wrapping
(e.g. due to <code class="lang-css highlight">white-space: nowrap</code> or a single word is too long to fit).
Values have the following meanings:</p>
   <dl class="valuedef">
    <dt><dfn class="css" data-dfn-for="text-overflow" data-dfn-type="value" data-export id="overflow-clip">clip<a class="self-link" href="#overflow-clip"></a></dfn>
    <dd>Clip inline content that overflows its block container element. Characters may be only partially rendered.
    <dt><dfn class="css" data-dfn-for="text-overflow" data-dfn-type="value" data-export id="overflow-ellipsis">ellipsis<a class="self-link" href="#overflow-ellipsis"></a></dfn>
    <dd> Render an ellipsis character (U+2026)
to represent clipped inline content.
Implementations may substitute a more language, script, or writing-mode appropriate
ellipsis character,
or three dots "..." if the ellipsis character is unavailable. 
   </dl>
   <p>The term "character" is used in this property definition
for better readability and means "grapheme cluster" <a data-link-type="biblio" href="#biblio-uax29">[UAX29]</a> for implementation purposes.</p>
   <p>For the ellipsis value
implementations must hide characters and <a href="https://www.w3.org/TR/CSS2/visuren.html#inline-boxes"> atomic inline-level elements</a> at the <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#end" id="ref-for-end①">end</a> edge of the line as necessary to fit the ellipsis, and
place the ellipsis immediately adjacent
to the <span id="ref-for-end②">end</span> edge of the remaining inline content.
The first character or <a href="https://www.w3.org/TR/CSS2/visuren.html#inline-boxes"> atomic inline-level element</a> on a line
must be clipped rather than ellipsed.</p>
   <div class="example" id="example-7153ff61">
    <a class="self-link" href="#example-7153ff61"></a> 
    <h4 class="no-num no-toc heading settled" id="bidi-ellipsis"><span class="content">Bidi ellipsis examples</span><a class="self-link" href="#bidi-ellipsis"></a></h4>
     These examples demonstrate which characters get hidden
to make room for the ellipsis in a bidi situation:
those visually at the end edge of the line. 
    <p>Sample CSS:</p>
<pre><code class="highlight"><c- f>div </c-><c- p>{</c->
  <c- k>font-family</c-><c- p>:</c-> monospace<c- p>;</c->
  <c- k>white-space</c-><c- p>:</c-> pre<c- p>;</c->
  <c- k>overflow</c-><c- p>:</c-> hidden<c- p>;</c->
  <c- k>width</c-><c- p>:</c-> <c- m>9</c-><c- l>ch</c-><c- p>;</c->
  <c- k>text-overflow</c-><c- p>:</c-> ellipsis<c- p>;</c->
<c- p>}</c->
</code></pre>
    <p>Sample HTML fragments, renderings, and your browser:</p>
    <table class="awesome-table data">
     <thead>
      <tr>
       <th>HTML
       <th>Reference rendering
       <th>Your Browser
     <tbody>
      <tr>
       <td><code class="highlight"><c- p>&lt;</c-><c- f>div</c-><c- p>></c->שלום 123456<c- p>&lt;/</c-><c- f>div</c-><c- p>></c-></code>
       <td>
        <div style="font-family:monospace">123456 ם…</div>
       <td>
        <div style="font-family: monospace; white-space: pre; overflow: hidden; width: 9ch; text-overflow: ellipsis">שלום 123456</div>
      <tr>
       <td><code class="highlight"><c- p>&lt;</c-><c- f>div</c-> <c- e>dir</c-><c- o>=</c-><c- s>rtl</c-><c- p>></c->שלום 123456<c- p>&lt;/</c-><c- f>div</c-><c- p>></c-></code>
       <td>
        <div style="font-family:monospace">…456 שלום</div>
       <td>
        <div dir="rtl" style="font-family: monospace; white-space: pre; overflow: hidden; width: 9ch; text-overflow: ellipsis">שלום 123456</div>
    </table>
   </div>
   <h4 class="no-num no-toc heading settled" id="ellipsing-details"><span class="content">ellipsing details</span><a class="self-link" href="#ellipsing-details"></a></h4>
   <ul>
    <li> Ellipsing only affects rendering and must not affect layout
nor dispatching of pointer events:
The UA should dispatch any pointer event on the ellipsis to the elided element,
as if <a class="property" data-link-type="propdesc" href="#propdef-text-overflow" id="ref-for-propdef-text-overflow③">text-overflow</a> had been <span class="css">none</span>. 
    <li> The ellipsis is styled and baseline-aligned according to
the block. 
    <li> Ellipsing occurs after relative positioning and other graphical transformations. 
    <li> If there is insufficient space for the ellipsis,
then clip the rendering of the ellipsis itself
(on the same side that neutral characters on the line
would have otherwise been clipped with the <span class="css">text-overflow:clip</span> value). 
   </ul>
   <h4 class="no-num no-toc heading settled" id="ellipsis-interaction"><span class="content">user interaction with ellipsis</span><a class="self-link" href="#ellipsis-interaction"></a></h4>
   <ul>
    <li>When the user is interacting with content
(e.g. editing, selecting, scrolling),
the user agent may treat <a class="css" data-link-type="propdesc" href="#propdef-text-overflow" id="ref-for-propdef-text-overflow④">text-overflow: ellipsis</a> as <span class="css" id="ref-for-propdef-text-overflow⑤">text-overflow: clip</span>. 
    <li>Selecting the ellipsis should select the ellipsed text.
If all of the ellipsed text is selected,
UAs should show selection of the ellipsis.
Behavior of partially-selected ellipsed text is up to the UA. 
   </ul>
   <div class="example" id="example-f7de2350">
    <a class="self-link" href="#example-f7de2350"></a>
    <p style="display:none">Example(s): </p>
    <h4 class="no-num no-toc heading settled" id="text-overflow-examples"><span class="content">text-overflow examples</span><a class="self-link" href="#text-overflow-examples"></a></h4>
    <p>These examples demonstrate setting the text-overflow of a block container element
that has text which overflows its dimensions:</p>
    <p>sample CSS for a div:</p>
<pre><code class="lang-css highlight"><c- f>div </c-><c- p>{</c->  <c- k>font-family</c-><c- p>:</c->Helvetica<c- p>,</c->sans-serif<c- p>;</c-> <c- k>line-height</c-><c- p>:</c-><c- m>1.1</c-><c- p>;</c->
  <c- k>width</c-><c- p>:</c-><c- m>3.1</c-><c- l>em</c-><c- p>;</c-> <c- k>padding</c-><c- p>:</c-><c- m>.2</c-><c- l>em</c-><c- p>;</c-> <c- k>border</c-><c- p>:</c->solid <c- m>.1</c-><c- l>em</c-> black<c- p>;</c-> <c- k>margin</c-><c- p>:</c-><c- m>1</c-><c- l>em</c-> <c- m>0</c-><c- p>;</c->
<c- p>}</c-></code></pre>
    <p>sample HTML fragments, renderings, and your browser:</p>
    <table class="awesome-table">
     <tbody>
      <tr>
       <th>HTML
       <th>sample rendering
       <th>your browser
      <tr>
       <td>
<pre><code class="lang-markup highlight"><c- p>&lt;</c-><c- f>div</c-><c- p>></c->
CSS IS AWESOME, YES
<c- p>&lt;/</c-><c- f>div</c-><c- p>></c->
</code></pre>
       <td>
        <object data="images/cssisawesome.png" type="image/png"> First, a box with text drawing outside of it. </object>
       <td>
        <div style="width:3.1em; border:solid .1em black; margin:1em 0; padding:.2em; font-family:Helvetica,sans-serif; line-height:1.1;">CSS IS AWESOME, YES</div>
      <tr>
       <td>
<pre><code class="lang-markup highlight"><c- p>&lt;</c-><c- f>div</c-> <c- e>style</c-><c- o>=</c-><c- s>"</c-><strong><c- s>text-overflow:clip;</c-></strong><c- s> overflow:hidden"</c-><c- p>></c->
CSS IS AWESOME, YES
<c- p>&lt;/</c-><c- f>div</c-><c- p>></c->
</code></pre>
       <td>
        <object data="images/cssisaweso.png" type="image/png"> Second, a similar box with the text clipped outside the box. </object>
       <td>
        <div style="width:3.1em; border:solid .1em black; margin:1em 0; padding:.2em; font-family:Helvetica,sans-serif; line-height:1.1; overflow:hidden;text-overflow:clip;">CSS IS AWESOME, YES</div>
      <tr>
       <td>
<pre><code class="lang-markup highlight"><c- p>&lt;</c-><c- f>div</c-> <c- e>style</c-><c- o>=</c-><c- s>"</c-><strong><c- s>text-overflow:ellipsis;</c-></strong><c- s> overflow:hidden"</c-><c- p>></c->
CSS IS AWESOME, YES
<c- p>&lt;/</c-><c- f>div</c-><c- p>></c->
</code></pre>
       <td>
        <object data="images/cssisaw.png" type="image/png"> Third, a similar box with an ellipsis representing the clipped text. </object>
       <td>
        <div style="width:3.1em; border:solid .1em black; margin:1em 0; padding:.2em;  font-family:Helvetica,sans-serif; line-height:1.1; overflow:hidden;text-overflow:ellipsis;">CSS IS AWESOME, YES</div>
      <tr>
       <td>
<pre><code class="lang-markup highlight"><c- p>&lt;</c-><c- f>div</c-> <c- e>style</c-><c- o>=</c-><c- s>"</c-><strong><c- s>text-overflow:ellipsis;</c-></strong><c- s> overflow:hidden"</c-><c- p>></c->
NESTED
 <c- p>&lt;</c-><c- f>p</c-><c- p>></c->PARAGRAPH<c- p>&lt;/</c-><c- f>p</c-><c- p>></c->
WON’T ELLIPSE.
<c- p>&lt;/</c-><c- f>div</c-><c- p>></c->
</code></pre>
       <td>
        <object data="images/nes.png" type="image/png"> Fourth, a box with a nested paragraph demonstrating anonymous block boxes equivalency and non-inheritance into a nested element. </object>
       <td>
        <div style="width:3.1em; border:solid .1em black; margin:1em 0; padding:.2em;  font-family:Helvetica,sans-serif; line-height:1.1; overflow:hidden;text-overflow:ellipsis;">
         NESTED 
         <p>PARAGRAPH</p>
          WON’T ELLIPSE.
        </div>
    </table>
   </div>
   <p class="note" role="note"><span>Note:</span> the side of the line that the ellipsis is placed depends on the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction" id="ref-for-propdef-direction">direction</a> of the block.
E.g. an overflow hidden right-to-left
(<code class="lang-css highlight">direction: rtl</code>)
block clips inline content on the <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-3/#physical-left" id="ref-for-physical-left">left</a> side,
thus would place a text-overflow ellipsis on the <span id="ref-for-physical-left①">left</span> to represent that clipped content.</p>
   <h4 class="no-num no-toc heading settled" id="ellipsis-scrolling"><span class="content">ellipsis interaction with scrolling interfaces</span><a class="self-link" href="#ellipsis-scrolling"></a></h4>
   <p>This section applies to elements with text-overflow other than <span class="css">text-overflow:clip</span> (non-clip text-overflow)
and overflow:scroll.</p>
   <p>When an element with non-clip text-overflow has overflow of scroll
in the inline progression dimension of the text,
and the browser provides a mechanism for scrolling
(e.g. a scrollbar on the element,
or a touch interface to swipe-scroll, etc.),
there are additional implementation details that provide a better user experience:</p>
   <p>When an element is scrolled (e.g. by the user, DOM manipulation),
more of the element’s content is shown.
The value of text-overflow should not affect
whether more of the element’s content is shown or not.
If a non-clip text-overflow is set,
then as more content is scrolled into view,
implementations should show whatever additional content fits,
only truncating content which would otherwise be clipped
(or is necessary to make room for the ellipsis/string),
until the element is scrolled far enough
to display the edge of the content
at which point that content should be displayed
rather than an ellipsis/string.</p>
   <div class="example" id="example-6a5a6d1e">
    <a class="self-link" href="#example-6a5a6d1e"></a>
    <p style="display:none">Example(s): </p>
    <p>This example uses text-overflow on an element with overflow scroll
to demonstrate the above described behavior.</p>
    <p>sample CSS:</p>
<pre><code class="lang-css highlight"><c- f>div.crawlbar </c-><c- p>{</c->
  <c- k>text-overflow</c-><c- p>:</c-> ellipsis<c- p>;</c->
  <c- k>height</c-><c- p>:</c-> <c- m>2</c-><c- l>em</c-><c- p>;</c->
  <c- k>overflow</c-><c- p>:</c-> scroll<c- p>;</c->
  <c- k>white-space</c-><c- p>:</c-> nowrap<c- p>;</c->
  <c- k>width</c-><c- p>:</c-> <c- m>15</c-><c- l>em</c-><c- p>;</c->
  <c- k>border</c-><c- p>:</c-><c- m>1</c-><c- l>em</c-> solid black<c- p>;</c->
<c- p>}</c->
</code></pre>
    <p>sample HTML fragment:</p>
<pre><code class="lang-markup highlight"><c- p>&lt;</c-><c- f>div</c-> <c- e>class</c-><c- o>=</c-><c- s>"crawlbar"</c-><c- p>></c->
CSS is awesome, especially when you can scroll
to see extra text instead of just
having it overlap other text by default.
<c- p>&lt;/</c-><c- f>div</c-><c- p>></c->
</code></pre>
    <p>demonstration of sample CSS and HTML:</p>
    <div style="text-overflow: ellipsis; height: 2em; overflow: scroll; white-space: nowrap; width: 15em; border:1em solid black;"> CSS is awesome, especially when you can scroll
to see extra text instead of just
having it overlap other text by default. </div>
   </div>
   <p>While the content is being scrolled, implementations may adjust their rendering of ellipses (e.g. align to the box edge rather than line edge).</p>
   <h3 class="heading settled" data-level="4.2" id="block-ellipsis"><span class="secno">4.2. </span><span class="content"> Indicating Block-Axis Overflow: the <a class="property" data-link-type="propdesc" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis①">block-ellipsis</a> property</span><a class="self-link" href="#block-ellipsis"></a></h3>
   <table class="def propdef" data-link-for-hint="block-ellipsis">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-block-ellipsis">block-ellipsis</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">none <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨">|</a> auto <span id="ref-for-comb-one①⓪">|</span> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value">&lt;string></a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>none 
     <tr>
      <th>Applies to:
      <td><a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#block-container" id="ref-for-block-container①">block containers</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>specified value 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete 
   </table>
   <p>This property allows inserting content into the last line box
	before a (forced <em>or</em> unforced) <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#region-break" id="ref-for-region-break">region break</a> to indicate the continuity of truncated/interrupted content.
	It only affects line boxes contained directly by the <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#block-container" id="ref-for-block-container②">block container</a> itself,
	but as it inherits, will have an effect on descendants’ line boxes unless overridden.
	If the box contains no line box immediately preceding a <span id="ref-for-region-break①">region break</span>,
	then this property has no effect.</p>
   <p class="note" role="note"><span>Note:</span> See <a href="#fragmentation">§ 5 Fragmenting Overflow</a> for a way to generate boxes with such a <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#region-break" id="ref-for-region-break②">region break</a>.</p>
   <p class="issue" id="issue-23a7778c"><a class="self-link" href="#issue-23a7778c"></a> Should this apply to other types of fragmentation breaks (e.g. pages, columns)?</p>
   <p>The inserted content is called the <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="block-overflow-ellipsis">block overflow ellipsis</dfn>.
	Values have the following meanings:</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="block-ellipsis" data-dfn-type="value" data-export id="valdef-block-ellipsis-none">none</dfn> 
    <dd> The rendering is unaffected. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="block-ellipsis" data-dfn-type="value" data-export id="valdef-block-ellipsis-auto">auto</dfn> 
    <dd> Render an ellipsis character (U+2026)—<wbr>or a more typographically-appropriate equivalent—<wbr>as the <a data-link-type="dfn" href="#block-overflow-ellipsis" id="ref-for-block-overflow-ellipsis">block overflow ellipsis</a> at the end of the affected line box.
			UAs should use the conventions of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-text-3/#content-language" id="ref-for-content-language">content language</a>,
			writing system, and <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#writing-mode" id="ref-for-writing-mode①">writing mode</a> to determine the most appropriate ellipsis string. 
    <dt><dfn class="css" data-dfn-for="block-ellipsis" data-dfn-type="value" data-export id="valdef-block-ellipsis-string"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value①">&lt;string></a><a class="self-link" href="#valdef-block-ellipsis-string"></a></dfn> 
    <dd> Render the specified string
			as the <a data-link-type="dfn" href="#block-overflow-ellipsis" id="ref-for-block-overflow-ellipsis①">block overflow ellipsis</a> at the end of the affected line box.
			The UA may truncate this string if it is absurdly long. 
   </dl>
   <p>When <a class="property" data-link-type="propdesc" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis②">block-ellipsis</a> is not <a class="css" data-link-type="maybe" href="#valdef-block-ellipsis-none" id="ref-for-valdef-block-ellipsis-none">none</a>,
	the <a data-link-type="dfn" href="#block-overflow-ellipsis" id="ref-for-block-overflow-ellipsis②">block overflow ellipsis</a> string
	is wrapped in an anonymous inline
	and placed at the end of the line box
	as a direct child of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#block-container" id="ref-for-block-container③">block container</a>’s <a data-link-type="dfn" href="https://drafts.csswg.org/css-inline-3/#root-inline-box" id="ref-for-root-inline-box">root inline box</a>,
	reducing the space in the line box
	available to the other contents of the line.
	This inline is assigned <a class="css" data-link-type="propdesc" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-unicode-bidi" id="ref-for-propdef-unicode-bidi">unicode-bidi: plaintext</a> and <a class="css" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height">line-height: 0</a> and is placed in the line box after the last <a data-link-type="dfn" href="https://drafts.csswg.org/css-text-3/#soft-wrap-opportunity" id="ref-for-soft-wrap-opportunity">soft wrap opportunity</a> (see <a data-link-type="biblio" href="#biblio-css-text-3">[CSS-TEXT-3]</a>)
	that would still allow the entire <span id="ref-for-block-overflow-ellipsis③">block overflow ellipsis</span> to fit on the line.
	For this purpose, <span id="ref-for-soft-wrap-opportunity①">soft wrap opportunities</span> added by <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-3/#propdef-overflow-wrap" id="ref-for-propdef-overflow-wrap">overflow-wrap</a> are ignored.
	If this results in the entire contents of the line box being displaced,
	the line box is considered to contain a <a data-link-type="dfn" href="https://www.w3.org/TR/CSS22/visudet.html#strut-element" id="ref-for-strut-element">strut</a>, as defined in <span spec-section="/visudet.html#leading"></span>.
	Text <a href="https://www.w3.org/TR/css-text-3/#justification">alignment and justification</a> occurs after placement,
	and measures the inserted <span id="ref-for-block-overflow-ellipsis④">block overflow ellipsis</span> together with the rest of the line’s content.</p>
   <p class="note" role="note"><span>Note:</span> Setting the <a data-link-type="dfn" href="#block-overflow-ellipsis" id="ref-for-block-overflow-ellipsis⑤">block overflow ellipsis</a>'s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height①">line-height</a> to <span class="css">0</span> makes sure that inserting it cannot cause the line’s height to grow,
	which could cause further relayouts and potentially cycles.
	This is almost equivalent to inserting the <span id="ref-for-block-overflow-ellipsis⑥">block overflow ellipsis</span> as a paint-time operation, except that it still participates in alignment and justification.
	The downside is that unusually tall / deep glyphs in the <span id="ref-for-block-overflow-ellipsis⑦">block overflow ellipsis</span> may overflow.</p>
   <p>The <a data-link-type="dfn" href="#block-overflow-ellipsis" id="ref-for-block-overflow-ellipsis⑧">block overflow ellipsis</a> must not be included
	in either the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-pseudo-4/#selectordef-first-letter" id="ref-for-selectordef-first-letter">::first-letter</a> nor the <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-pseudo-4/#selectordef-first-line" id="ref-for-selectordef-first-line">::first-line</a> pseudo-elements.</p>
   <p>If there is a subsequent <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-container" id="ref-for-fragmentation-container">fragmentation container</a> in the <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-context" id="ref-for-fragmentation-context">fragmentation context</a> that would receive subsequent content,
	then the content displaced by the <a data-link-type="dfn" href="#block-overflow-ellipsis" id="ref-for-block-overflow-ellipsis⑨">block overflow ellipsis</a> must be pushed to that <span id="ref-for-fragmentation-container①">fragmentation container</span>.</p>
   <p>The UA must treat the <a data-link-type="dfn" href="#block-overflow-ellipsis" id="ref-for-block-overflow-ellipsis①⓪">block overflow ellipsis</a> as an unbreakable string,
	If any part of the <span id="ref-for-block-overflow-ellipsis①①">block overflow ellipsis</span> overflows,
	it is treated as <a data-link-type="dfn" href="#scrollable-overflow" id="ref-for-scrollable-overflow⑥">scrollable overflow</a>,
	and its rendering is affected by the <a class="property" data-link-type="propdesc" href="#propdef-text-overflow" id="ref-for-propdef-text-overflow⑥">text-overflow</a> property.</p>
   <p>The <a data-link-type="dfn" href="#block-overflow-ellipsis" id="ref-for-block-overflow-ellipsis①②">block overflow ellipsis</a> does not capture events:
	pointer events are dispatched to whatever is underneath it.</p>
   <p>It also has no effect on the intrinsic size of the box:
	its <a data-link-type="dfn" href="https://drafts.csswg.org/css-sizing-3/#min-content" id="ref-for-min-content">min-content</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-sizing-3/#max-content" id="ref-for-max-content">max-content</a> sizes
	are calculated exactly as if <a class="property" data-link-type="propdesc" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis③">block-ellipsis</a> were <a class="css" data-link-type="maybe" href="#valdef-block-ellipsis-none" id="ref-for-valdef-block-ellipsis-none①">none</a>.</p>
   <p class="note" role="note"><span>Note:</span> Future specifications may extend this feature,
	for example by providing an <span class="css">::ellipsis</span> pseudo-element
	to style the text,
	or by allowing the selection of a child element of the block
	to use as either an inline-level or block-level indicator
	(in which case, it can capture events).</p>
   <h2 class="heading settled" data-level="5" id="fragmentation"><span class="secno">5. </span><span class="content"> Fragmenting Overflow</span><a class="self-link" href="#fragmentation"></a></h2>
   <h3 class="heading settled" data-level="5.1" id="line-clamp"><span class="secno">5.1. </span><span class="content"> Limiting Visible Lines: the <a class="property" data-link-type="propdesc" href="#propdef-line-clamp" id="ref-for-propdef-line-clamp">line-clamp</a> shorthand property</span><a class="self-link" href="#line-clamp"></a></h3>
   <table class="def propdef" data-link-for-hint="line-clamp">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-line-clamp">line-clamp</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">none <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①①">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value">&lt;integer></a> <a class="production" data-link-type="propdesc" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis④">&lt;'block-ellipsis'></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt">?</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>none 
     <tr>
      <th>Applies to:
      <td>see individual properties 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>see individual properties 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>see individual properties 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>see individual properties 
     <tr>
      <th>Canonical order:
      <td>per grammar 
   </table>
   <p>The <a class="property" data-link-type="propdesc" href="#propdef-line-clamp" id="ref-for-propdef-line-clamp①">line-clamp</a> property is a <a data-link-type="dfn" href="https://drafts.csswg.org/css-cascade-4/#shorthand-property" id="ref-for-shorthand-property">shorthand</a> for the <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines②">max-lines</a>, <a class="property" data-link-type="propdesc" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis⑤">block-ellipsis</a>, and <a class="property" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue">continue</a> properties.</p>
   <p class="issue" id="issue-4d6cf3b4"><a class="self-link" href="#issue-4d6cf3b4"></a> For the time being,
	experiemental implementations are encouraged
	to follow the full behavior defined by this shorthand and its longhands,
	but to only expose the shorthand to authors.
	This is in order to facilitate further tweaking,
	and in particular potential renaming,
	of the longhand properties and their values.</p>
   <p>It allows limiting the contents of a block container
	to the specified number of lines;
	remaining content is fragmented away
	and neither rendered nor measured.
	Optionally, it also allows inserting content into the last line box
	to indicate the continuity of truncated/interrupted content.</p>
   <p>The values have the following meaning:</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="line-clamp" data-dfn-type="value" data-export id="valdef-line-clamp-none">none</dfn> 
    <dd>Sets <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines③">max-lines</a> to <a class="css" data-link-type="maybe" href="#valdef-max-lines-none" id="ref-for-valdef-max-lines-none">none</a>, <a class="property" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue①">continue</a> to <a class="css" data-link-type="maybe" href="#valdef-continue-auto" id="ref-for-valdef-continue-auto">auto</a>,
			and <a class="property" data-link-type="propdesc" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis⑥">block-ellipsis</a> to <a class="css" data-link-type="maybe" href="#valdef-block-ellipsis-none" id="ref-for-valdef-block-ellipsis-none②">none</a>. 
    <dt><dfn class="css" data-dfn-for="line-clamp" data-dfn-type="value" data-export id="valdef-line-clamp-integer"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value①">&lt;integer></a><a class="self-link" href="#valdef-line-clamp-integer"></a></dfn> 
    <dd>Sets <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines④">max-lines</a> to the specified <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value②">&lt;integer></a>, <a class="property" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue②">continue</a> to <a class="css" data-link-type="maybe" href="#valdef-continue-discard" id="ref-for-valdef-continue-discard">discard</a>,
			and the <a class="property" data-link-type="propdesc" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis⑦">block-ellipsis</a> property to second component of the value
			or to <a class="css" data-link-type="maybe" href="#valdef-block-ellipsis-auto" id="ref-for-valdef-block-ellipsis-auto">auto</a> if omitted. 
   </dl>
   <p>See the corresponding longhand properties for details
	about how this mechanism operates.</p>
   <div class="example" id="example-968e7717">
    <a class="self-link" href="#example-968e7717"></a> In this example, the lead paragraph of each article
		is listed in a shortened menu,
		truncated to fit within 10 lines
		that end with “… (continued on next page)”: 
<pre class="highlight"><c- f>li </c-><c- p>{</c->
  <c- k>line-clamp</c-><c- p>:</c-> <c- m>5</c-> <c- s>"… (continued on next page)"</c-><c- p>;</c->
<c- p>}</c->
<c- f>strong </c-><c- p>{</c->
  <c- k>display</c-><c- p>:</c-> block<c- p>;</c->
  <c- k>text-transform</c-><c- p>:</c-> uppercase<c- p>;</c->
<c- p>}</c->
</pre>
<pre class="highlight"><c- p>&lt;</c-><c- f>li</c-><c- p>>&lt;</c-><c- f>a</c-> <c- e>href</c-><c- o>=</c-><c- s>"cheese-is-milk"</c-><c- p>></c->
  <c- p>&lt;</c-><c- f>strong</c-><c- p>></c->Cheese is Actually Made of Milk!<c- p>&lt;/</c-><c- f>strong</c-><c- p>></c->
  Investigative reporters at the World Wide Web Press Corps
  have discovered the secret of cheese.
  Tracing through byzantine layers of bureacracy and shadow corporations,
  our crack team of journalists have traced the source of camembert.
<c- p>&lt;/</c-><c- f>a</c-><c- p>>&lt;/</c-><c- f>li</c-><c- p>></c->
</pre>
    <p>Sample rendering:</p>
<pre class="figure">+---------------------------------------+
| CHEESE IS ACTUALLY MADE OF MILK!      |
| Investigative reporters at the World  |
| Wide Web Press Corps have discovered  |
| the secret of cheese. Tracing through |
| byzantine…  (continued on next page)  |
+---------------------------------------+
</pre>
   </div>
   <h4 class="heading settled" data-level="5.1.1" id="webkit-line-clamp"><span class="secno">5.1.1. </span><span class="content"> Legacy compatibility</span><a class="self-link" href="#webkit-line-clamp"></a></h4>
   <p>For compatibility with legacy content,
	UAs that support <a class="property" data-link-type="propdesc" href="#propdef-line-clamp" id="ref-for-propdef-line-clamp②">line-clamp</a> must also support the <dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef--webkit-line-clamp">-webkit-line-clamp</dfn> property.
	Like <span class="property" id="ref-for-propdef-line-clamp③">line-clamp</span>, it is a shorthand of <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines⑤">max-lines</a>, <a class="property" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue③">continue</a>, and <a class="property" data-link-type="propdesc" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis⑧">block-ellipsis</a>,
	except that:</p>
   <ul>
    <li data-md>
     <p>its syntax is <a class="css" data-link-type="maybe" href="#valdef-line-clamp-none" id="ref-for-valdef-line-clamp-none">none</a> | <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value③">&lt;integer></a></p>
    <li data-md>
     <p>it sets <a class="property" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue④">continue</a> to <a class="css" data-link-type="maybe" href="#valdef-continue--webkit-discard" id="ref-for-valdef-continue--webkit-discard">-webkit-discard</a> instead of <a class="css" data-link-type="maybe" href="#valdef-continue-discard" id="ref-for-valdef-continue-discard①">discard</a></p>
    <li data-md>
     <p>it unconditionally sets <a class="property" data-link-type="propdesc" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis⑨">block-ellipsis</a> to <a class="css" data-link-type="maybe" href="#valdef-block-ellipsis-auto" id="ref-for-valdef-block-ellipsis-auto①">auto</a></p>
   </ul>
   <p>Additionally, for children (including anonymous children)
	of boxes whose <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-display-3/#propdef-display" id="ref-for-propdef-display①">display</a> property computes to <span class="css">-webkit-box</span> or <span class="css">-webkit-inline-box</span>,
	the used values of the <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines⑥">max-lines</a>, <a class="property" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue⑤">continue</a>, and <a class="property" data-link-type="propdesc" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis①⓪">block-ellipsis</a> properties
	are taken from the computed values of the parent box;
	the computed values of these properties on the box itself are ignored.</p>
   <p>The <dfn class="dfn-paneled css" data-dfn-for="continue" data-dfn-type="value" data-export id="valdef-continue--webkit-discard">-webkit-discard</dfn> value behaves identically to <a class="css" data-link-type="maybe" href="#valdef-continue-discard" id="ref-for-valdef-continue-discard②">discard</a>,
	except that it only takes effect
	if the computed value of the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-display-3/#propdef-display" id="ref-for-propdef-display②">display</a> property on the parent
	is <span class="css">-webkit-box</span> or <span class="css">-webkit-inline-box</span> and the computed value of the <a class="property" data-link-type="propdesc">-webkit-box-orient</a> property on the parent
	is <span class="css">vertical</span>.</p>
   <p class="note" role="note"><span>Note:</span> Implementations of the legacy <a class="property" data-link-type="propdesc" href="#propdef--webkit-line-clamp" id="ref-for-propdef--webkit-line-clamp">-webkit-line-clamp</a> property
	have not behaved identically to what is specified here.
	The historical behavior is quirky and less robust,
	as documented for example in <a href="https://medium.com/mofed/css-line-clamp-the-good-the-bad-and-the-straight-up-broken-865413f16e5">this blog post</a>.
	The current design learns from the mistakes of that early experiment,
	and is intended to be sufficiently compatible with existing content
	that implementations can eventually be changed to follow to the specified behavior.
	If further adjustments are found to be necessary,
	they will be incorporated to this specification.
	In the meanwhile, authors should be aware that there may be discrepancies.</p>
   <h3 class="heading settled" data-level="5.2" id="max-lines"><span class="secno">5.2. </span><span class="content"> Forcing a Break After a Set Number of Lines: the <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines⑦">max-lines</a> property</span><a class="self-link" href="#max-lines"></a></h3>
   <table class="def propdef" data-link-for-hint="max-lines">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-max-lines">max-lines</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod"><a class="css" data-link-type="maybe" href="#valdef-max-lines-none" id="ref-for-valdef-max-lines-none①">none</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①②">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value④">&lt;integer></a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td><a class="css" data-link-type="maybe" href="#valdef-max-lines-none" id="ref-for-valdef-max-lines-none②">none</a> 
     <tr>
      <th>Applies to:
      <td><a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#block-container" id="ref-for-block-container④">block containers</a> which are also <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-container" id="ref-for-fragmentation-container②">fragmentation containers</a> that capture <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#region-break" id="ref-for-region-break③">region breaks</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>no 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>the keyword <a class="css" data-link-type="maybe" href="#valdef-max-lines-none" id="ref-for-valdef-max-lines-none③">none</a> or an integer 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>by computed value type 
   </table>
   <p>This property has no effect on boxes that are not <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-container" id="ref-for-fragmentation-container③">fragmentation containers</a> that capture <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#region-break" id="ref-for-region-break④">region breaks</a>.</p>
   <p>Otherwise, if the value of <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines⑧">max-lines</a> is not <dfn class="dfn-paneled css" data-dfn-for="max-lines" data-dfn-type="value" data-export id="valdef-max-lines-none">none</dfn>,
	a <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#region-break" id="ref-for-region-break⑤">region break</a> is forced after its <var>N</var>th
	descendant <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#in-flow" id="ref-for-in-flow">in-flow</a> <a data-link-type="dfn">line box</a>,
	where <var>N</var> is the specified value of <span class="property" id="ref-for-propdef-max-lines⑨">max-lines</span>.
	Only lines boxes in the same <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#block-formatting-context" id="ref-for-block-formatting-context">Block Formatting Context</a> are counted:
	the contents of descendants that establish <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#independent-formatting-context" id="ref-for-independent-formatting-context">independent formatting contexts</a> are skipped over while counting line boxes.</p>
   <p>If fewer than <var>N</var> line boxes exist,
	then <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines①⓪">max-lines</a> introduces no <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#region-break" id="ref-for-region-break⑥">region break</a>.</p>
   <div class="example" id="example-0eb502d4">
    <a class="self-link" href="#example-0eb502d4"></a> As <a class="css" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue⑥">continue: discard</a> does not cause the element to <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#establish-an-independent-formatting-context" id="ref-for-establish-an-independent-formatting-context①">establish an independent formatting context</a>,
		lines in a nested element with <a class="property" data-link-type="propdesc" href="#propdef-line-clamp" id="ref-for-propdef-line-clamp④">line-clamp</a> are counted,
		as can be seen in the examples below. 
<pre class="highlight"><c- p>&lt;</c-><c- f>div</c-> <c- e>id</c-><c- o>=</c-><c- s>a</c-><c- p>></c->
  a: line 1<c- p>&lt;</c-><c- f>br</c-><c- p>></c->
  a: line 2<c- p>&lt;</c-><c- f>br</c-><c- p>></c->
  <c- p>&lt;</c-><c- f>div</c-> <c- e>id</c-><c- o>=</c-><c- s>b</c-><c- p>></c->
    b: line 1<c- p>&lt;</c-><c- f>br</c-><c- p>></c->
    b: line 2<c- p>&lt;</c-><c- f>br</c-><c- p>></c->
    b: line 3<c- p>&lt;</c-><c- f>br</c-><c- p>></c->
    b: line 4<c- p>&lt;</c-><c- f>br</c-><c- p>></c->
  <c- p>&lt;/</c-><c- f>div</c-><c- p>></c->
  a: line 3<c- p>&lt;</c-><c- f>br</c-><c- p>></c->
  a: line 4<c- p>&lt;</c-><c- f>br</c-><c- p>></c->
<c- p>&lt;/</c-><c- f>div</c-><c- p>></c->
</pre>
    <p>Sample rendering given <code class="highlight"><c- f>#a </c-><c- p>{</c-> <c- k>line-clamp</c-><c- p>:</c-> <c- m>5</c-><c- p>;</c-> <c- p>}</c-> <c- f>b </c-><c- p>{</c-> <c- k>line-clamp</c-><c- p>:</c-> <c- m>2</c-><c- p>;</c-> <c- p>}</c-></code>:</p>
<pre>a: line 1
a: line 2
b: line 1
b: line 2…
a: line 3…
</pre>
    <p>Sample rendering given <code class="highlight"><c- f>#a </c-><c- p>{</c-> <c- k>line-clamp</c-><c- p>:</c-> <c- m>3</c-><c- p>;</c-> <c- p>}</c-> <c- f>b </c-><c- p>{</c-> <c- k>line-clamp</c-><c- p>:</c-> <c- m>2</c-><c- p>;</c-> <c- p>}</c-></code>:</p>
<pre>a: line 1
a: line 2
b: line 1…
</pre>
    <p>Note that in the second case,
		the maximum of 2 lines set on element <span class="css">#b</span> does not take effect,
		since a forced break is introduced
		before the second line of this element.</p>
   </div>
   <p class="note" role="note"><span>Note:</span> This implies that <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines①①">max-lines</a> has no effect when applied to <a data-link-type="dfn" href="https://drafts.csswg.org/css-multicol-1/#multi-column-container" id="ref-for-multi-column-container">multi-column containers</a>,
	since any line box they contain are nested into <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#independent-formatting-context" id="ref-for-independent-formatting-context①">independent formatting contexts</a>.</p>
   <p>Only positive integers are accepted.
	Zero or negative integers are invalid
	and must cause the declaration to be <a data-link-type="dfn" href="https://drafts.csswg.org/css-syntax-3/#css-ignored" id="ref-for-css-ignored">ignored</a>.</p>
   <p class="note" role="note"><span>Note:</span> The <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-break-4/#propdef-widows" id="ref-for-propdef-widows">widows</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-break-3/#propdef-orphans" id="ref-for-propdef-orphans">orphans</a>, and <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-break-3/#propdef-break-inside" id="ref-for-propdef-break-inside">break-inside</a> properties
	do not affect the position of the forced <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#region-break" id="ref-for-region-break⑦">region break</a> introduced by the <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines①②">max-lines</a> property.</p>
   <div class="note" role="note">
     Note: Despite the “region break” name, this is not a dependency on <a data-link-type="biblio" href="#biblio-css-regions-1">[CSS-REGIONS-1]</a>.
		The word “region” is only used as a classifier for forced breaks:
		they can be “page breaks” (breaks across pages <a data-link-type="biblio" href="#biblio-css-page-3">[css-page-3]</a>),
		“column breaks” (breaks across multi-column layout columns <a data-link-type="biblio" href="#biblio-css-multicol-1">[css-multicol-1]</a>),
		or “region breaks” (breaks across any other kind of CSS-induced <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-container" id="ref-for-fragmentation-container④">fragmentation containers</a>). 
    <p>If an implementation supports neither <a data-link-type="biblio" href="#biblio-css-regions-1">[CSS-REGIONS-1]</a> nor <a href="https://www.w3.org/TR/css-overflow-4/#fragmentation">CSS Overflow 4 §5 Fragmentation of overflow</a>,
		then it will have had no occasion yet to run into that kind of breaks,
		and this will be an addition.
		However the addition does not involve bringing over any of the <span>[CSS-REGIONS-1]</span> functionality.
		All that is needed is:</p>
    <ul>
     <li data-md>
      <p>be able to fragment</p>
     <li data-md>
      <p>classify these fragmentation containers as “Category 3”
(i.e. not pages nor columns)
for the purpose of forced breaks.</p>
    </ul>
   </div>
   <h3 class="heading settled" data-level="5.3" id="continue"><span class="secno">5.3. </span><span class="content"> Fragmentation of Overflow: the <a class="property" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue⑦">continue</a> property</span><a class="self-link" href="#continue"></a></h3>
   <table class="def propdef" data-link-for-hint="continue">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-continue">continue</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①③">|</a> discard 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td><a class="css" data-link-type="maybe" href="#valdef-continue-auto" id="ref-for-valdef-continue-auto①">auto</a> 
     <tr>
      <th>Applies to:
      <td><a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#block-container" id="ref-for-block-container⑤">block containers</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-multicol-1/#multi-column-container" id="ref-for-multi-column-container①">multicol containers</a> 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>no 
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>N/A 
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>specified keyword 
     <tr>
      <th>Canonical order:
      <td>per grammar 
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete 
   </table>
   <p>The <a class="property" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue⑧">continue</a> property gives authors the ability
to turn a box into a <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-container" id="ref-for-fragmentation-container⑤">fragmentation container</a> (see <a data-link-type="biblio" href="#biblio-css-break-3">[CSS-BREAK-3]</a>)
and to specify that content after the <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-break" id="ref-for-fragmentation-break">fragmentation break</a> must be discarded.</p>
   <p class="issue" id="issue-fe5938c8"><a class="self-link" href="#issue-fe5938c8"></a> This property is meant to generalize and replace the <code>region-fragment</code> property from <a data-link-type="biblio" href="#biblio-css-regions-1">[CSS-REGIONS-1]</a>.
Once it is sufficiently stable in this specification, <code>region-fragment</code> should be removed from the regions specification in favor of this.</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="continue" data-dfn-type="value" data-export id="valdef-continue-auto">auto</dfn> 
    <dd>
     <p>If the box has more content than can fit,
			the excess content is handled according to the usual rules.</p>
    <dt><dfn class="dfn-paneled css" data-dfn-for="continue" data-dfn-type="value" data-export id="valdef-continue-discard">discard</dfn> 
    <dd>
      The box becomes a <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-container" id="ref-for-fragmentation-container⑥">fragmentation container</a> that captures <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#region-break" id="ref-for-region-break⑧">region breaks</a>,
			if it is not already. <a data-link-type="biblio" href="#biblio-css-break-3">[CSS-BREAK-3]</a> 
     <p>The position of the first <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#forced-break" id="ref-for-forced-break">forced</a> <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#region-break" id="ref-for-region-break⑨">region break</a> (whether imposed by <a class="property" data-link-type="propdesc" href="#propdef-max-lines" id="ref-for-propdef-max-lines①③">max-lines</a> or by another mechanism,
			such as the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-break-3/#propdef-break-before" id="ref-for-propdef-break-before">break-before</a>/<a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-break-3/#propdef-break-after" id="ref-for-propdef-break-after">break-after</a> properties)
			or the position of the first <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#unforced-break" id="ref-for-unforced-break">unforced break</a>,
			which ever comes sooner,
			is treated as the end of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-container" id="ref-for-fragmentation-container⑦">fragmentation container</a>,
			and the remaining content after the <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-break" id="ref-for-fragmentation-break①">fragmentation break</a> is discarded,
			similar to if it were <a class="css" data-link-type="propdesc" href="https://drafts.csswg.org/css-display-3/#propdef-display" id="ref-for-propdef-display③">display: none</a>:</p>
     <ul>
      <li data-md>
       <p>It is not rendered</p>
      <li data-md>
       <p>Just as the content is visually hidden, it is not made available for speech rendering</p>
      <li data-md>
       <p>It does not allow user interaction</p>
      <li data-md>
       <p class="issue" id="issue-0232c12f"><a class="self-link" href="#issue-0232c12f"></a> Make sure effects on OM are well defined <a href="https://github.com/w3c/csswg-drafts/issues/2970">&lt;https://github.com/w3c/csswg-drafts/issues/2970></a></p>
      <li data-md>
       <p><a data-link-type="dfn" href="https://www.w3.org/TR/CSS22/visuren.html#positioned-element" id="ref-for-positioned-element">Positioned</a> elements whose static position is in the discarded content are not rendered.</p>
       <p class="issue" id="issue-381eccd8"><a class="self-link" href="#issue-381eccd8"></a> Are we sure about that?
Discussions in the <a href="https://lists.w3.org/Archives/Public/www-style/2018Jul/0030.html">Syndey F2F meeting</a> seemed to generally converge on this,
but other possibilities were raised. <a href="https://github.com/w3c/csswg-drafts/issues/2971">&lt;https://github.com/w3c/csswg-drafts/issues/2971></a></p>
     </ul>
     <p>However, since intrinsic sizes are calculated across <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-container" id="ref-for-fragmentation-container⑧">fragmentation containers</a>,
			this content <em>is</em> taken into account
			for the purpose of finding the box’s <a data-link-type="dfn" href="https://drafts.csswg.org/css-sizing-3/#min-content-inline-size" id="ref-for-min-content-inline-size">min-content</a> and <a data-link-type="dfn" href="https://drafts.csswg.org/css-sizing-3/#max-content" id="ref-for-max-content①">max-content</a> <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#inline-size" id="ref-for-inline-size">inline sizes</a> (see <a href="https://www.w3.org/TR/css3-break/#varying-size-boxes">CSS Fragmentation 3 §5.1 Breaking into Varying-size Fragmentainers</a>). <span id="ref-for-min-content-inline-size①">Min-content</span> and <span id="ref-for-max-content②">max-content</span> <a data-link-type="dfn" href="https://drafts.csswg.org/css-writing-modes-4/#block-size" id="ref-for-block-size">block sizes</a> are calculated based on the content
			from the start of the <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmented-flow" id="ref-for-fragmented-flow">fragmented flow</a> to the first <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#forced-break" id="ref-for-forced-break①">forced break</a> if any,
			or to the end of the <span id="ref-for-fragmented-flow①">fragmented flow</span> if there is no forced break.</p>
     <p class="note" role="note"><span>Note:</span> Calculating intrinsic block sizes to the first forced <em>or unforced</em> break
			would cause intrinsic sizes to depend on layout, which would cause circularities.</p>
     <p>The effect on <a data-link-type="dfn" href="https://drafts.csswg.org/css-multicol-1/#multi-column-container" id="ref-for-multi-column-container②">multi-column containers</a> is to discard any <a data-link-type="dfn" href="https://drafts.csswg.org/css-multicol-1/#overflow-columns" id="ref-for-overflow-columns">overflow column</a>.</p>
     <p class="note" role="note"><span>Note:</span> In the case of <a href="https://www.w3.org/TR/css-break-3/#parallel-flows">parallel fragmentation flows</a>,
			content occuring after the <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-break" id="ref-for-fragmentation-break②">fragmentation break</a> in the box tree
			could still be rendered,
			if it is laid out above the position
			representing the end of this <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-container" id="ref-for-fragmentation-container⑨">fragmentation container</a>.</p>
   </dl>
   <p class="note" role="note"><span>Note:</span> This property does <em>not</em> cause the box to <a data-link-type="dfn" href="https://drafts.csswg.org/css-display-3/#establish-an-independent-formatting-context" id="ref-for-establish-an-independent-formatting-context②">establish an independent formatting context</a>.</p>
   <div class="example" id="example-722627b5">
    <a class="self-link" href="#example-722627b5"></a> Given an article with one excessively long overflowing line,
		and four more lines than can fit in the <a data-link-type="dfn" href="https://drafts.csswg.org/css-break-4/#fragmentation-direction" id="ref-for-fragmentation-direction">fragmentation direction</a> as in the illustration bellow,
		different renderings are possible based on the combination of the <a class="property" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow①⑤">overflow</a> and <a class="property" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue⑨">continue</a> property. 
    <figure> <img alt="article with one excessively long line and four more that can fit in the block direction" src="images/continue-flow.png"> </figure>
    <table class="data">
     <tbody>
      <tr>
       <th>
       <th><a class="css" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue①⓪">continue: discard</a> 
       <th><a class="css" data-link-type="propdesc" href="#propdef-continue" id="ref-for-propdef-continue①①">continue: auto</a> 
      <tr>
       <th><a class="css" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow①⑥">overflow: visible</a> 
       <td style="vertical-align:top"><img alt="rendering with continue:discard and overflow:visible" src="images/continue-discard-visible.png">
       <td><img alt="rendering with continue:auto and overflow:visible" src="images/continue-auto-visible.png">
      <tr>
       <th><a class="css" data-link-type="propdesc" href="#propdef-overflow" id="ref-for-propdef-overflow①⑦">overflow: hidden</a> 
       <td><img alt="rendering with continue:discard and overflow:hidden" src="images/continue-discard-hidden.png">
       <td><img alt="rendering with continue:auto and overflow:hidden" src="images/continue-auto-hidden.png">
    </table>
   </div>
   <h2 class="heading settled" data-level="6" id="priv-sec"><span class="secno">6. </span><span class="content">Privacy and Security Considerations</span><a class="self-link" href="#priv-sec"></a></h2>
   <p>This specification introduces no new privacy or security concerns.</p>
   <h2 class="no-num heading settled" id="acknowledgments"><span class="content"> Acknowledgments</span><a class="self-link" href="#acknowledgments"></a></h2>
   <p> Thanks especially to the feedback from
		Rossen Atanassov,
		Bert Bos,
		Tantek Çelik,
		John Daggett,
		Daniel Glazman,
		Vincent Hardy,
		Håkon Wium Lie,
		Peter Linss,
		Robert O’Callahan,
		Florian Rivoal,
		Alan Stearns,
		Steve Zilles,
		and all the rest of the <a href="http://lists.w3.org/Archives/Public/www-style/">www-style</a> community. </p>
  </main>
  <h2 class="no-ref no-num heading settled" id="conformance"><span class="content"> Conformance</span><a class="self-link" href="#conformance"></a></h2>
  <h3 class="heading settled" id="document-conventions"><span class="content"> Document conventions</span><a class="self-link" href="#document-conventions"></a></h3>
  <p>Conformance requirements are expressed with a combination of
	descriptive assertions and RFC 2119 terminology. The key words “MUST”,
	“MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”,
	“RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this
	document are to be interpreted as described in RFC 2119.
	However, for readability, these words do not appear in all uppercase
	letters in this specification. </p>
  <p>All of the text of this specification is normative except sections
	explicitly marked as non-normative, examples, and notes. <a data-link-type="biblio" href="#biblio-rfc2119">[RFC2119]</a> </p>
  <p>Examples in this specification are introduced with the words “for example”
	or are set apart from the normative text with <code>class="example"</code>,
	like this: </p>
  <div class="example" id="example-ae2b6bc0">
   <a class="self-link" href="#example-ae2b6bc0"></a> 
   <p>This is an example of an informative example. </p>
  </div>
  <p>Informative notes begin with the word “Note” and are set apart from the
	normative text with <code>class="note"</code>, like this: </p>
  <p class="note" role="note">Note, this is an informative note. </p>
  <p>Advisements are normative sections styled to evoke special attention and are
	set apart from other normative text with <code>&lt;strong class="advisement"></code>, like
	this: <strong class="advisement"> UAs MUST provide an accessible alternative. </strong> </p>
  <h3 class="heading settled" id="conform-classes"><span class="content"> Conformance classes</span><a class="self-link" href="#conform-classes"></a></h3>
  <p>Conformance to this specification
	is defined for three conformance classes: </p>
  <dl>
   <dt>style sheet 
   <dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#style-sheet">CSS
			style sheet</a>. 
   <dt>renderer 
   <dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#user-agent">UA</a> that interprets the semantics of a style sheet and renders
			documents that use them. 
   <dt>authoring tool 
   <dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#user-agent">UA</a> that writes a style sheet. 
  </dl>
  <p>A style sheet is conformant to this specification
	if all of its statements that use syntax defined in this module are valid
	according to the generic CSS grammar and the individual grammars of each
	feature defined in this module. </p>
  <p>A renderer is conformant to this specification
	if, in addition to interpreting the style sheet as defined by the
	appropriate specifications, it supports all the features defined
	by this specification by parsing them correctly
	and rendering the document accordingly. However, the inability of a
	UA to correctly render a document due to limitations of the device
	does not make the UA non-conformant. (For example, a UA is not
	required to render color on a monochrome monitor.) </p>
  <p>An authoring tool is conformant to this specification
	if it writes style sheets that are syntactically correct according to the
	generic CSS grammar and the individual grammars of each feature in
	this module, and meet all other conformance requirements of style sheets
	as described in this module. </p>
  <h3 class="heading settled" id="conform-responsible"><span class="content"> Requirements for Responsible Implementation of CSS</span><a class="self-link" href="#conform-responsible"></a></h3>
  <p>The following sections define several conformance requirements
		for implementing CSS responsibly,
		in a way that promotes interoperability in the present and future. </p>
  <h4 class="heading settled" id="conform-partial"><span class="content"> Partial Implementations</span><a class="self-link" href="#conform-partial"></a></h4>
  <p>So that authors can exploit the forward-compatible parsing rules to assign fallback values, <strong>CSS renderers <em>must</em> treat as invalid
		(and <a href="http://www.w3.org/TR/CSS2/conform.html#ignore">ignore as appropriate</a>)
		any at-rules, properties, property values, keywords, and other syntactic constructs
		for which they have no usable level of support</strong>.
		In particular, user agents <em>must not</em> selectively ignore
		unsupported property values and honor supported values in a single multi-value property declaration:
		if any value is considered invalid (as unsupported values must be),
		CSS requires that the entire declaration be ignored. </p>
  <h4 class="heading settled" id="conform-future-proofing"><span class="content"> Implementations of Unstable and Proprietary Features</span><a class="self-link" href="#conform-future-proofing"></a></h4>
  <p>To avoid clashes with future stable CSS features,
		the CSSWG recommends <a href="http://www.w3.org/TR/CSS/#future-proofing">following best practices</a> for the implementation of <a href="http://www.w3.org/TR/CSS/#unstable">unstable</a> features and <a href="http://www.w3.org/TR/CSS/#proprietary-extension">proprietary extensions</a> to CSS. </p>
  <h4 class="heading settled" id="conform-testing"><span class="content"> Implementations of CR-level Features</span><a class="self-link" href="#conform-testing"></a></h4>
  <p>Once a specification reaches the Candidate Recommendation stage,
		implementers should release an <a data-link-type="dfn" href="http://www.w3.org/TR/CSS/#vendor-prefix">unprefixed</a> implementation
		of any CR-level feature they can demonstrate
		to be correctly implemented according to spec,
		and should avoid exposing a prefixed variant of that feature. </p>
  <p>To establish and maintain the interoperability of CSS across
		implementations, the CSS Working Group requests that non-experimental
		CSS renderers submit an implementation report (and, if necessary, the
		testcases used for that implementation report) to the W3C before
		releasing an unprefixed implementation of any CSS features. Testcases
		submitted to W3C are subject to review and correction by the CSS
		Working Group. </p>
  <p>
   Further information on submitting testcases and implementation reports
		can be found from on the CSS Working Group’s website at <a href="http://www.w3.org/Style/CSS/Test/">http://www.w3.org/Style/CSS/Test/</a>.
		Questions should be directed to the <a href="http://lists.w3.org/Archives/Public/public-css-testsuite">public-css-testsuite@w3.org</a> mailing list. 
<script src="https://www.w3.org/scripts/TR/2016/fixup.js"></script>
  </p>
  <aside class="caniuse-status" data-deco data-dfn-id="text-overflow">
   <input class="caniuse-panel-btn" type="button" value="⋰">
   <p class="support"><b>Support:</b><span class="android yes"><span>Android Browser</span><span>2.1+</span></span><span class="baidu yes"><span>Baidu Browser</span><span>7.12+</span></span><span class="bb yes"><span>Blackberry Browser</span><span>7+</span></span><span class="chrome yes"><span>Chrome</span><span>4+</span></span><span class="and_chr yes"><span>Chrome for Android</span><span>74+</span></span><span class="edge yes"><span>Edge</span><span>12+</span></span><span class="firefox yes"><span>Firefox</span><span>7+</span></span><span class="and_ff yes"><span>Firefox for Android</span><span>66+</span></span><span class="ie yes"><span>IE</span><span>6+</span></span><span class="ie_mob yes"><span>IE Mobile</span><span>10+</span></span><span class="kaios yes"><span>KaiOS Browser</span><span>2.5+</span></span><span class="opera yes"><span>Opera</span><span>11+</span></span><span class="op_mini yes"><span>Opera Mini</span><span>All</span></span><span class="op_mob yes"><span>Opera Mobile</span><span>12.1+</span></span><span class="and_qq yes"><span>QQ Browser</span><span>1.2+</span></span><span class="safari yes"><span>Safari</span><span>3.1+</span></span><span class="samsung yes"><span>Samsung Internet</span><span>4+</span></span><span class="and_uc yes"><span>UC Browser for Android</span><span>11.8+</span></span><span class="ios_saf yes"><span>iOS Safari</span><span>3.2+</span></span></p>
   <p class="caniuse">Source: <a href="https://caniuse.com/#feat=text-overflow">caniuse.com</a> as of 2019-06-04</p>
  </aside>
  <h2 class="no-num no-ref heading settled" id="index"><span class="content">Index</span><a class="self-link" href="#index"></a></h2>
  <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="content">Terms defined by this specification</span><a class="self-link" href="#index-defined-here"></a></h3>
  <ul class="index">
   <li>
    auto
    <ul>
     <li><a href="#valdef-block-ellipsis-auto">value for block-ellipsis</a><span>, in §4.2</span>
     <li><a href="#valdef-continue-auto">value for continue</a><span>, in §5.3</span>
     <li><a href="#valdef-overflow-auto">value for overflow, overflow-x, overflow-y</a><span>, in §3</span>
    </ul>
   <li><a href="#propdef-block-ellipsis">block-ellipsis</a><span>, in §4.2</span>
   <li><a href="#block-overflow-ellipsis">block overflow ellipsis</a><span>, in §4.2</span>
   <li>
    clip
    <ul>
     <li><a href="#valdef-overflow-clip">value for overflow, overflow-x, overflow-y</a><span>, in §3</span>
     <li><a href="#overflow-clip">value for text-overflow</a><span>, in §4.1</span>
    </ul>
   <li><a href="#propdef-continue">continue</a><span>, in §5.3</span>
   <li><a href="#valdef-continue-discard">discard</a><span>, in §5.3</span>
   <li><a href="#overflow-ellipsis">ellipsis</a><span>, in §4.1</span>
   <li><a href="#valdef-overflow-hidden">hidden</a><span>, in §3</span>
   <li><a href="#initial-scroll-position">initial scroll position</a><span>, in §3.3</span>
   <li><a href="#ink-overflow">ink overflow</a><span>, in §2.1</span>
   <li><a href="#ink-overflow-rectangle">ink overflow rectangle</a><span>, in §2.1</span>
   <li><a href="#ink-overflow-region">ink overflow region</a><span>, in §2.1</span>
   <li><a href="#valdef-line-clamp-integer">&lt;integer></a><span>, in §5.1</span>
   <li><a href="#propdef-line-clamp">line-clamp</a><span>, in §5.1</span>
   <li><a href="#propdef-max-lines">max-lines</a><span>, in §5.2</span>
   <li>
    none
    <ul>
     <li><a href="#valdef-block-ellipsis-none">value for block-ellipsis</a><span>, in §4.2</span>
     <li><a href="#valdef-line-clamp-none">value for line-clamp</a><span>, in §5.1</span>
     <li><a href="#valdef-max-lines-none">value for max-lines</a><span>, in §5.2</span>
    </ul>
   <li>
    overflow
    <ul>
     <li><a href="#propdef-overflow">(property)</a><span>, in §3</span>
     <li><a href="#overflow">definition of</a><span>, in §2</span>
    </ul>
   <li><a href="#propdef-overflow-block">overflow-block</a><span>, in §3.5</span>
   <li><a href="#propdef-overflow-inline">overflow-inline</a><span>, in §3.5</span>
   <li><a href="#propdef-overflow-x">overflow-x</a><span>, in §3</span>
   <li><a href="#propdef-overflow-y">overflow-y</a><span>, in §3</span>
   <li><a href="#valdef-overflow-scroll">scroll</a><span>, in §3</span>
   <li><a href="#scrollable-overflow">scrollable overflow</a><span>, in §2.2</span>
   <li><a href="#scrollable-overflow-rectangle">scrollable overflow rectangle</a><span>, in §2.2</span>
   <li><a href="#scrollable-overflow-region">scrollable overflow region</a><span>, in §2.2</span>
   <li><a href="#scroll-container">scroll container</a><span>, in §3</span>
   <li><a href="#scrollport">scrollport</a><span>, in §3</span>
   <li><a href="#valdef-block-ellipsis-string">&lt;string></a><span>, in §4.2</span>
   <li><a href="#propdef-text-overflow">text-overflow</a><span>, in §4.1</span>
   <li><a href="#valdef-overflow-visible">visible</a><span>, in §3</span>
   <li><a href="#valdef-continue--webkit-discard">-webkit-discard</a><span>, in §5.1.1</span>
   <li><a href="#propdef--webkit-line-clamp">-webkit-line-clamp</a><span>, in §5.1.1</span>
  </ul>
  <aside class="dfn-panel" data-for="term-for-propdef-align-content">
   <a href="https://drafts.csswg.org/css-align-3/#propdef-align-content">https://drafts.csswg.org/css-align-3/#propdef-align-content</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-align-content">2.2. 
Scrollable Overflow</a>
    <li><a href="#ref-for-propdef-align-content①">3.3. 
Scrolling Origin, Direction, and Restriction</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-content-distribution-properties">
   <a href="https://drafts.csswg.org/css-align-3/#content-distribution-properties">https://drafts.csswg.org/css-align-3/#content-distribution-properties</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-content-distribution-properties">2.2. 
Scrollable Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-justify-content">
   <a href="https://drafts.csswg.org/css-align-3/#propdef-justify-content">https://drafts.csswg.org/css-align-3/#propdef-justify-content</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-justify-content">2.2. 
Scrollable Overflow</a>
    <li><a href="#ref-for-propdef-justify-content①">3.3. 
Scrolling Origin, Direction, and Restriction</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-valdef-justify-content-normal">
   <a href="https://drafts.csswg.org/css-align-3/#valdef-justify-content-normal">https://drafts.csswg.org/css-align-3/#valdef-justify-content-normal</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-justify-content-normal">2.2. 
Scrollable Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-place-content">
   <a href="https://drafts.csswg.org/css-align-3/#propdef-place-content">https://drafts.csswg.org/css-align-3/#propdef-place-content</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-place-content">2.2. 
Scrollable Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-box-shadow">
   <a href="https://drafts.csswg.org/css-backgrounds-3/#propdef-box-shadow">https://drafts.csswg.org/css-backgrounds-3/#propdef-box-shadow</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-box-shadow">2.1. Ink Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-break-after">
   <a href="https://drafts.csswg.org/css-break-3/#propdef-break-after">https://drafts.csswg.org/css-break-3/#propdef-break-after</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-break-after">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-break-before">
   <a href="https://drafts.csswg.org/css-break-3/#propdef-break-before">https://drafts.csswg.org/css-break-3/#propdef-break-before</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-break-before">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-break-inside">
   <a href="https://drafts.csswg.org/css-break-3/#propdef-break-inside">https://drafts.csswg.org/css-break-3/#propdef-break-inside</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-break-inside">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-orphans">
   <a href="https://drafts.csswg.org/css-break-3/#propdef-orphans">https://drafts.csswg.org/css-break-3/#propdef-orphans</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-orphans">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-forced-break">
   <a href="https://drafts.csswg.org/css-break-4/#forced-break">https://drafts.csswg.org/css-break-4/#forced-break</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-forced-break">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-forced-break①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-fragmentation-break">
   <a href="https://drafts.csswg.org/css-break-4/#fragmentation-break">https://drafts.csswg.org/css-break-4/#fragmentation-break</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-fragmentation-break">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-fragmentation-break①">(2)</a> <a href="#ref-for-fragmentation-break②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-fragmentation-container">
   <a href="https://drafts.csswg.org/css-break-4/#fragmentation-container">https://drafts.csswg.org/css-break-4/#fragmentation-container</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-fragmentation-container">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a> <a href="#ref-for-fragmentation-container①">(2)</a>
    <li><a href="#ref-for-fragmentation-container②">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a> <a href="#ref-for-fragmentation-container③">(2)</a> <a href="#ref-for-fragmentation-container④">(3)</a>
    <li><a href="#ref-for-fragmentation-container⑤">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-fragmentation-container⑥">(2)</a> <a href="#ref-for-fragmentation-container⑦">(3)</a> <a href="#ref-for-fragmentation-container⑧">(4)</a> <a href="#ref-for-fragmentation-container⑨">(5)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-fragmentation-context">
   <a href="https://drafts.csswg.org/css-break-4/#fragmentation-context">https://drafts.csswg.org/css-break-4/#fragmentation-context</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-fragmentation-context">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-fragmentation-direction">
   <a href="https://drafts.csswg.org/css-break-4/#fragmentation-direction">https://drafts.csswg.org/css-break-4/#fragmentation-direction</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-fragmentation-direction">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-fragmented-flow">
   <a href="https://drafts.csswg.org/css-break-4/#fragmented-flow">https://drafts.csswg.org/css-break-4/#fragmented-flow</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-fragmented-flow">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-fragmented-flow①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-region-break">
   <a href="https://drafts.csswg.org/css-break-4/#region-break">https://drafts.csswg.org/css-break-4/#region-break</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-region-break">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a> <a href="#ref-for-region-break①">(2)</a> <a href="#ref-for-region-break②">(3)</a>
    <li><a href="#ref-for-region-break③">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a> <a href="#ref-for-region-break④">(2)</a> <a href="#ref-for-region-break⑤">(3)</a> <a href="#ref-for-region-break⑥">(4)</a> <a href="#ref-for-region-break⑦">(5)</a>
    <li><a href="#ref-for-region-break⑧">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-region-break⑨">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-unforced-break">
   <a href="https://drafts.csswg.org/css-break-4/#unforced-break">https://drafts.csswg.org/css-break-4/#unforced-break</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-unforced-break">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-widows">
   <a href="https://drafts.csswg.org/css-break-4/#propdef-widows">https://drafts.csswg.org/css-break-4/#propdef-widows</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-widows">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-shorthand-property">
   <a href="https://drafts.csswg.org/css-cascade-4/#shorthand-property">https://drafts.csswg.org/css-cascade-4/#shorthand-property</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-shorthand-property">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-contain">
   <a href="https://drafts.csswg.org/css-contain-1/#propdef-contain">https://drafts.csswg.org/css-contain-1/#propdef-contain</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-contain">2.2. 
Scrollable Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-block-box">
   <a href="https://drafts.csswg.org/css-display-3/#block-box">https://drafts.csswg.org/css-display-3/#block-box</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-block-box">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-block-container">
   <a href="https://drafts.csswg.org/css-display-3/#block-container">https://drafts.csswg.org/css-display-3/#block-container</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-block-container">2.2. 
Scrollable Overflow</a>
    <li><a href="#ref-for-block-container①">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a> <a href="#ref-for-block-container②">(2)</a> <a href="#ref-for-block-container③">(3)</a>
    <li><a href="#ref-for-block-container④">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
    <li><a href="#ref-for-block-container⑤">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-block-formatting-context">
   <a href="https://drafts.csswg.org/css-display-3/#block-formatting-context">https://drafts.csswg.org/css-display-3/#block-formatting-context</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-block-formatting-context">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-containing-block-chain">
   <a href="https://drafts.csswg.org/css-display-3/#containing-block-chain">https://drafts.csswg.org/css-display-3/#containing-block-chain</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-containing-block-chain">2. 
Types of Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-display">
   <a href="https://drafts.csswg.org/css-display-3/#propdef-display">https://drafts.csswg.org/css-display-3/#propdef-display</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-display">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a>
    <li><a href="#ref-for-propdef-display①">5.1.1. 
Legacy compatibility</a> <a href="#ref-for-propdef-display②">(2)</a>
    <li><a href="#ref-for-propdef-display③">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-establish-an-independent-formatting-context">
   <a href="https://drafts.csswg.org/css-display-3/#establish-an-independent-formatting-context">https://drafts.csswg.org/css-display-3/#establish-an-independent-formatting-context</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-establish-an-independent-formatting-context">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a>
    <li><a href="#ref-for-establish-an-independent-formatting-context①">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
    <li><a href="#ref-for-establish-an-independent-formatting-context②">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-establish-an-independent-formatting-context">
   <a href="https://drafts.csswg.org/css-display-3/#establish-an-independent-formatting-context">https://drafts.csswg.org/css-display-3/#establish-an-independent-formatting-context</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-establish-an-independent-formatting-context">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a>
    <li><a href="#ref-for-establish-an-independent-formatting-context①">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
    <li><a href="#ref-for-establish-an-independent-formatting-context②">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-in-flow">
   <a href="https://drafts.csswg.org/css-display-3/#in-flow">https://drafts.csswg.org/css-display-3/#in-flow</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-in-flow">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-independent-formatting-context">
   <a href="https://drafts.csswg.org/css-display-3/#independent-formatting-context">https://drafts.csswg.org/css-display-3/#independent-formatting-context</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-independent-formatting-context">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a> <a href="#ref-for-independent-formatting-context①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-root-inline-box">
   <a href="https://drafts.csswg.org/css-inline-3/#root-inline-box">https://drafts.csswg.org/css-inline-3/#root-inline-box</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-root-inline-box">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-clip">
   <a href="https://drafts.fxtf.org/css-masking-1/#propdef-clip">https://drafts.fxtf.org/css-masking-1/#propdef-clip</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-clip">2.2. 
Scrollable Overflow</a> <a href="#ref-for-propdef-clip①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-clip-path">
   <a href="https://drafts.fxtf.org/css-masking-1/#propdef-clip-path">https://drafts.fxtf.org/css-masking-1/#propdef-clip-path</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-clip-path">2.2. 
Scrollable Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-multi-column-container">
   <a href="https://drafts.csswg.org/css-multicol-1/#multi-column-container">https://drafts.csswg.org/css-multicol-1/#multi-column-container</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-multi-column-container">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
    <li><a href="#ref-for-multi-column-container①">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-multi-column-container②">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-multi-column-container">
   <a href="https://drafts.csswg.org/css-multicol-1/#multi-column-container">https://drafts.csswg.org/css-multicol-1/#multi-column-container</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-multi-column-container">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
    <li><a href="#ref-for-multi-column-container①">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-multi-column-container②">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-overflow-columns">
   <a href="https://drafts.csswg.org/css-multicol-1/#overflow-columns">https://drafts.csswg.org/css-multicol-1/#overflow-columns</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-overflow-columns">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-selectordef-first-letter">
   <a href="https://drafts.csswg.org/css-pseudo-4/#selectordef-first-letter">https://drafts.csswg.org/css-pseudo-4/#selectordef-first-letter</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-selectordef-first-letter">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-selectordef-first-line">
   <a href="https://drafts.csswg.org/css-pseudo-4/#selectordef-first-line">https://drafts.csswg.org/css-pseudo-4/#selectordef-first-line</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-selectordef-first-line">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-max-content">
   <a href="https://drafts.csswg.org/css-sizing-3/#max-content">https://drafts.csswg.org/css-sizing-3/#max-content</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-max-content">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
    <li><a href="#ref-for-max-content①">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-max-content②">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-max-content">
   <a href="https://drafts.csswg.org/css-sizing-3/#max-content">https://drafts.csswg.org/css-sizing-3/#max-content</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-max-content">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
    <li><a href="#ref-for-max-content①">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-max-content②">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-min-content-inline-size">
   <a href="https://drafts.csswg.org/css-sizing-3/#min-content-inline-size">https://drafts.csswg.org/css-sizing-3/#min-content-inline-size</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-min-content-inline-size">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-min-content-inline-size①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-min-content">
   <a href="https://drafts.csswg.org/css-sizing-3/#min-content">https://drafts.csswg.org/css-sizing-3/#min-content</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-min-content">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-css-ignored">
   <a href="https://drafts.csswg.org/css-syntax-3/#css-ignored">https://drafts.csswg.org/css-syntax-3/#css-ignored</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-css-ignored">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-content-language">
   <a href="https://drafts.csswg.org/css-text-3/#content-language">https://drafts.csswg.org/css-text-3/#content-language</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-content-language">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-overflow-wrap">
   <a href="https://drafts.csswg.org/css-text-3/#propdef-overflow-wrap">https://drafts.csswg.org/css-text-3/#propdef-overflow-wrap</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-overflow-wrap">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-soft-wrap-opportunity">
   <a href="https://drafts.csswg.org/css-text-3/#soft-wrap-opportunity">https://drafts.csswg.org/css-text-3/#soft-wrap-opportunity</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-soft-wrap-opportunity">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a> <a href="#ref-for-soft-wrap-opportunity①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-text-shadow">
   <a href="https://drafts.csswg.org/css-text-decor-3/#propdef-text-shadow">https://drafts.csswg.org/css-text-decor-3/#propdef-text-shadow</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-text-shadow">2.1. Ink Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-3d-rendering-context">
   <a href="https://drafts.csswg.org/css-transforms-2/#3d-rendering-context">https://drafts.csswg.org/css-transforms-2/#3d-rendering-context</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-3d-rendering-context">2.2. 
Scrollable Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-transform-style">
   <a href="https://drafts.csswg.org/css-transforms-2/#propdef-transform-style">https://drafts.csswg.org/css-transforms-2/#propdef-transform-style</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-transform-style">2. 
Types of Overflow</a> <a href="#ref-for-propdef-transform-style①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-integer-value">
   <a href="https://drafts.csswg.org/css-values-3/#integer-value">https://drafts.csswg.org/css-values-3/#integer-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-integer-value">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a> <a href="#ref-for-integer-value①">(2)</a> <a href="#ref-for-integer-value②">(3)</a>
    <li><a href="#ref-for-integer-value③">5.1.1. 
Legacy compatibility</a>
    <li><a href="#ref-for-integer-value④">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-string-value">
   <a href="https://drafts.csswg.org/css-values-3/#string-value">https://drafts.csswg.org/css-values-3/#string-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-string-value">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a> <a href="#ref-for-string-value①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-mult-opt">
   <a href="https://drafts.csswg.org/css-values-4/#mult-opt">https://drafts.csswg.org/css-values-4/#mult-opt</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-mult-opt">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-mult-num-range">
   <a href="https://drafts.csswg.org/css-values-4/#mult-num-range">https://drafts.csswg.org/css-values-4/#mult-num-range</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-mult-num-range">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-comb-one">
   <a href="https://drafts.csswg.org/css-values-4/#comb-one">https://drafts.csswg.org/css-values-4/#comb-one</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-comb-one">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a> <a href="#ref-for-comb-one①">(2)</a> <a href="#ref-for-comb-one②">(3)</a> <a href="#ref-for-comb-one③">(4)</a> <a href="#ref-for-comb-one④">(5)</a> <a href="#ref-for-comb-one⑤">(6)</a> <a href="#ref-for-comb-one⑥">(7)</a> <a href="#ref-for-comb-one⑦">(8)</a>
    <li><a href="#ref-for-comb-one⑧">4.1. 
    Overflow Ellipsis: the text-overflow property</a>
    <li><a href="#ref-for-comb-one⑨">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a> <a href="#ref-for-comb-one①⓪">(2)</a>
    <li><a href="#ref-for-comb-one①①">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a>
    <li><a href="#ref-for-comb-one①②">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
    <li><a href="#ref-for-comb-one①③">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-direction">
   <a href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">https://drafts.csswg.org/css-writing-modes-3/#propdef-direction</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-direction">user interaction with ellipsis</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-physical-left">
   <a href="https://drafts.csswg.org/css-writing-modes-3/#physical-left">https://drafts.csswg.org/css-writing-modes-3/#physical-left</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-physical-left">user interaction with ellipsis</a> <a href="#ref-for-physical-left①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-unicode-bidi">
   <a href="https://drafts.csswg.org/css-writing-modes-3/#propdef-unicode-bidi">https://drafts.csswg.org/css-writing-modes-3/#propdef-unicode-bidi</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-unicode-bidi">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-block-size">
   <a href="https://drafts.csswg.org/css-writing-modes-4/#block-size">https://drafts.csswg.org/css-writing-modes-4/#block-size</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-block-size">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-block-start">
   <a href="https://drafts.csswg.org/css-writing-modes-4/#block-start">https://drafts.csswg.org/css-writing-modes-4/#block-start</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-block-start">2.2. 
Scrollable Overflow</a>
    <li><a href="#ref-for-block-start①">3.3. 
Scrolling Origin, Direction, and Restriction</a> <a href="#ref-for-block-start②">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-end">
   <a href="https://drafts.csswg.org/css-writing-modes-4/#end">https://drafts.csswg.org/css-writing-modes-4/#end</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-end">4.1. 
    Overflow Ellipsis: the text-overflow property</a> <a href="#ref-for-end①">(2)</a> <a href="#ref-for-end②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-inline-size">
   <a href="https://drafts.csswg.org/css-writing-modes-4/#inline-size">https://drafts.csswg.org/css-writing-modes-4/#inline-size</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-inline-size">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-inline-start">
   <a href="https://drafts.csswg.org/css-writing-modes-4/#inline-start">https://drafts.csswg.org/css-writing-modes-4/#inline-start</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-inline-start">2.2. 
Scrollable Overflow</a>
    <li><a href="#ref-for-inline-start①">3.3. 
Scrolling Origin, Direction, and Restriction</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-principal-writing-mode">
   <a href="https://drafts.csswg.org/css-writing-modes-4/#principal-writing-mode">https://drafts.csswg.org/css-writing-modes-4/#principal-writing-mode</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-principal-writing-mode">3.3. 
Scrolling Origin, Direction, and Restriction</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-writing-mode">
   <a href="https://drafts.csswg.org/css-writing-modes-4/#writing-mode">https://drafts.csswg.org/css-writing-modes-4/#writing-mode</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-writing-mode">3.3. 
Scrolling Origin, Direction, and Restriction</a>
    <li><a href="#ref-for-writing-mode①">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-writing-mode">
   <a href="https://drafts.csswg.org/css-writing-modes-4/#propdef-writing-mode">https://drafts.csswg.org/css-writing-modes-4/#propdef-writing-mode</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-writing-mode">3.5. 
Flow Relative Properties: the overflow-block and overflow-inline properties</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-line-height">
   <a href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height">https://drafts.csswg.org/css2/visudet.html#propdef-line-height</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-line-height">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a> <a href="#ref-for-propdef-line-height①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-positioned-element">
   <a href="https://www.w3.org/TR/CSS22/visuren.html#positioned-element">https://www.w3.org/TR/CSS22/visuren.html#positioned-element</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-positioned-element">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-strut-element">
   <a href="https://www.w3.org/TR/CSS22/visudet.html#strut-element">https://www.w3.org/TR/CSS22/visudet.html#strut-element</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-strut-element">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-padding-edge">
   <a href="https://drafts.csswg.org/css-box-3/#padding-edge">https://drafts.csswg.org/css-box-3/#padding-edge</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-padding-edge">3.3. 
Scrolling Origin, Direction, and Restriction</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-flex-item">
   <a href="https://drafts.csswg.org/css-flexbox-1/#flex-item">https://drafts.csswg.org/css-flexbox-1/#flex-item</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-flex-item">2.2. 
Scrollable Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-grid-item">
   <a href="https://drafts.csswg.org/css-grid-1/#grid-item">https://drafts.csswg.org/css-grid-1/#grid-item</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-grid-item">2.2. 
Scrollable Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-the-body-element">
   <a href="https://html.spec.whatwg.org/multipage/sections.html#the-body-element">https://html.spec.whatwg.org/multipage/sections.html#the-body-element</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-the-body-element">3.4. 
Overflow Viewport Propagation</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-the-html-element">
   <a href="https://html.spec.whatwg.org/multipage/semantics.html#the-html-element">https://html.spec.whatwg.org/multipage/semantics.html#the-html-element</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-the-html-element">3.4. 
Overflow Viewport Propagation</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-valdef-media-print">
   <a href="https://drafts.csswg.org/mediaqueries-4/#valdef-media-print">https://drafts.csswg.org/mediaqueries-4/#valdef-media-print</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-media-print">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a>
   </ul>
  </aside>
  <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span class="content">Terms defined by reference</span><a class="self-link" href="#index-defined-elsewhere"></a></h3>
  <ul class="index">
   <li>
    <a data-link-type="biblio">[CSS-ALIGN-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-align-content" style="color:initial">align-content</span>
     <li><span class="dfn-paneled" id="term-for-content-distribution-properties" style="color:initial">content-distribution properties</span>
     <li><span class="dfn-paneled" id="term-for-propdef-justify-content" style="color:initial">justify-content</span>
     <li><span class="dfn-paneled" id="term-for-valdef-justify-content-normal" style="color:initial">normal</span>
     <li><span class="dfn-paneled" id="term-for-propdef-place-content" style="color:initial">place-content</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS-BACKGROUNDS-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-box-shadow" style="color:initial">box-shadow</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS-BREAK-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-break-after" style="color:initial">break-after</span>
     <li><span class="dfn-paneled" id="term-for-propdef-break-before" style="color:initial">break-before</span>
     <li><span class="dfn-paneled" id="term-for-propdef-break-inside" style="color:initial">break-inside</span>
     <li><span class="dfn-paneled" id="term-for-propdef-orphans" style="color:initial">orphans</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-break-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-forced-break" style="color:initial">forced break</span>
     <li><span class="dfn-paneled" id="term-for-fragmentation-break" style="color:initial">fragmentation break</span>
     <li><span class="dfn-paneled" id="term-for-fragmentation-container" style="color:initial">fragmentation container</span>
     <li><span class="dfn-paneled" id="term-for-fragmentation-context" style="color:initial">fragmentation context</span>
     <li><span class="dfn-paneled" id="term-for-fragmentation-direction" style="color:initial">fragmentation direction</span>
     <li><span class="dfn-paneled" id="term-for-fragmented-flow" style="color:initial">fragmented flow</span>
     <li><span class="dfn-paneled" id="term-for-region-break" style="color:initial">region break</span>
     <li><span class="dfn-paneled" id="term-for-unforced-break" style="color:initial">unforced break</span>
     <li><span class="dfn-paneled" id="term-for-propdef-widows" style="color:initial">widows</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-cascade-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-shorthand-property" style="color:initial">shorthand</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-contain-1]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-contain" style="color:initial">contain</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-display-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-block-box" style="color:initial">block box</span>
     <li><span class="dfn-paneled" id="term-for-block-container" style="color:initial">block container</span>
     <li><span class="dfn-paneled" id="term-for-block-formatting-context" style="color:initial">block formatting context</span>
     <li><span class="dfn-paneled" id="term-for-containing-block-chain" style="color:initial">containing block chain</span>
     <li><span class="dfn-paneled" id="term-for-propdef-display" style="color:initial">display</span>
     <li><span class="dfn-paneled" id="term-for-establish-an-independent-formatting-context" style="color:initial">establish an independent formatting context</span>
     <li><span class="dfn-paneled" id="term-for-establish-an-independent-formatting-context①" style="color:initial">establishes an independent formatting context</span>
     <li><span class="dfn-paneled" id="term-for-in-flow" style="color:initial">in-flow</span>
     <li><span class="dfn-paneled" id="term-for-independent-formatting-context" style="color:initial">independent formatting context</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-inline-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-root-inline-box" style="color:initial">root inline box</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS-MASKING-1]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-clip" style="color:initial">clip</span>
     <li><span class="dfn-paneled" id="term-for-propdef-clip-path" style="color:initial">clip-path</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-multicol-1]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-multi-column-container" style="color:initial">multi-column container</span>
     <li><span class="dfn-paneled" id="term-for-multi-column-container①" style="color:initial">multicol container</span>
     <li><span class="dfn-paneled" id="term-for-overflow-columns" style="color:initial">overflow columns</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-pseudo-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-selectordef-first-letter" style="color:initial">::first-letter</span>
     <li><span class="dfn-paneled" id="term-for-selectordef-first-line" style="color:initial">::first-line</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-sizing-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-max-content" style="color:initial">max-content</span>
     <li><span class="dfn-paneled" id="term-for-max-content①" style="color:initial">max-content size</span>
     <li><span class="dfn-paneled" id="term-for-min-content-inline-size" style="color:initial">min-content inline size</span>
     <li><span class="dfn-paneled" id="term-for-min-content" style="color:initial">min-content size</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-syntax-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-css-ignored" style="color:initial">ignored</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS-TEXT-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-content-language" style="color:initial">content language</span>
     <li><span class="dfn-paneled" id="term-for-propdef-overflow-wrap" style="color:initial">overflow-wrap</span>
     <li><span class="dfn-paneled" id="term-for-soft-wrap-opportunity" style="color:initial">soft wrap opportunity</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-text-decor-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-text-shadow" style="color:initial">text-shadow</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-transforms-2]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-3d-rendering-context" style="color:initial">3d rendering context</span>
     <li><span class="dfn-paneled" id="term-for-propdef-transform-style" style="color:initial">transform-style</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-values-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-integer-value" style="color:initial">&lt;integer></span>
     <li><span class="dfn-paneled" id="term-for-string-value" style="color:initial">&lt;string></span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-values-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-mult-opt" style="color:initial">?</span>
     <li><span class="dfn-paneled" id="term-for-mult-num-range" style="color:initial">{a,b}</span>
     <li><span class="dfn-paneled" id="term-for-comb-one" style="color:initial">|</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-writing-modes-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-direction" style="color:initial">direction</span>
     <li><span class="dfn-paneled" id="term-for-physical-left" style="color:initial">left</span>
     <li><span class="dfn-paneled" id="term-for-propdef-unicode-bidi" style="color:initial">unicode-bidi</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-writing-modes-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-block-size" style="color:initial">block size</span>
     <li><span class="dfn-paneled" id="term-for-block-start" style="color:initial">block-start</span>
     <li><span class="dfn-paneled" id="term-for-end" style="color:initial">end</span>
     <li><span class="dfn-paneled" id="term-for-inline-size" style="color:initial">inline size</span>
     <li><span class="dfn-paneled" id="term-for-inline-start" style="color:initial">inline-start</span>
     <li><span class="dfn-paneled" id="term-for-principal-writing-mode" style="color:initial">principal writing mode</span>
     <li><span class="dfn-paneled" id="term-for-writing-mode" style="color:initial">writing mode</span>
     <li><span class="dfn-paneled" id="term-for-propdef-writing-mode" style="color:initial">writing-mode</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS21]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-line-height" style="color:initial">line-height</span>
     <li><span class="dfn-paneled" id="term-for-positioned-element" style="color:initial">positioned</span>
     <li><span class="dfn-paneled" id="term-for-strut-element" style="color:initial">strut</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS3-BOX]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-padding-edge" style="color:initial">padding edge</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS3-FLEXBOX]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-flex-item" style="color:initial">flex item</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS3-GRID-LAYOUT]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-grid-item" style="color:initial">grid item</span>
    </ul>
   <li>
    <a data-link-type="biblio">[HTML]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-the-body-element" style="color:initial">body</span>
     <li><span class="dfn-paneled" id="term-for-the-html-element" style="color:initial">html</span>
    </ul>
   <li>
    <a data-link-type="biblio">[mediaqueries-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-valdef-media-print" style="color:initial">print</span>
    </ul>
  </ul>
  <h2 class="no-num no-ref heading settled" id="references"><span class="content">References</span><a class="self-link" href="#references"></a></h2>
  <h3 class="no-num no-ref heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3>
  <dl>
   <dt id="biblio-css-align-3">[CSS-ALIGN-3]
   <dd>Elika Etemad; Tab Atkins Jr.. <a href="https://www.w3.org/TR/css-align-3/">CSS Box Alignment Module Level 3</a>. 6 December 2018. WD. URL: <a href="https://www.w3.org/TR/css-align-3/">https://www.w3.org/TR/css-align-3/</a>
   <dt id="biblio-css-backgrounds-3">[CSS-BACKGROUNDS-3]
   <dd>Bert Bos; Elika Etemad; Brad Kemper. <a href="https://www.w3.org/TR/css-backgrounds-3/">CSS Backgrounds and Borders Module Level 3</a>. 17 October 2017. CR. URL: <a href="https://www.w3.org/TR/css-backgrounds-3/">https://www.w3.org/TR/css-backgrounds-3/</a>
   <dt id="biblio-css-break-3">[CSS-BREAK-3]
   <dd>Rossen Atanassov; Elika Etemad. <a href="https://www.w3.org/TR/css-break-3/">CSS Fragmentation Module Level 3</a>. 4 December 2018. CR. URL: <a href="https://www.w3.org/TR/css-break-3/">https://www.w3.org/TR/css-break-3/</a>
   <dt id="biblio-css-break-4">[CSS-BREAK-4]
   <dd>Rossen Atanassov; Elika Etemad. <a href="https://www.w3.org/TR/css-break-4/">CSS Fragmentation Module Level 4</a>. 18 December 2018. WD. URL: <a href="https://www.w3.org/TR/css-break-4/">https://www.w3.org/TR/css-break-4/</a>
   <dt id="biblio-css-cascade-4">[CSS-CASCADE-4]
   <dd>Elika Etemad; Tab Atkins Jr.. <a href="https://www.w3.org/TR/css-cascade-4/">CSS Cascading and Inheritance Level 4</a>. 28 August 2018. CR. URL: <a href="https://www.w3.org/TR/css-cascade-4/">https://www.w3.org/TR/css-cascade-4/</a>
   <dt id="biblio-css-contain-1">[CSS-CONTAIN-1]
   <dd>Tab Atkins Jr.; Florian Rivoal. <a href="https://www.w3.org/TR/css-contain-1/">CSS Containment Module Level 1</a>. 30 April 2019. CR. URL: <a href="https://www.w3.org/TR/css-contain-1/">https://www.w3.org/TR/css-contain-1/</a>
   <dt id="biblio-css-display-3">[CSS-DISPLAY-3]
   <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://www.w3.org/TR/css-display-3/">CSS Display Module Level 3</a>. 28 August 2018. CR. URL: <a href="https://www.w3.org/TR/css-display-3/">https://www.w3.org/TR/css-display-3/</a>
   <dt id="biblio-css-inline-3">[CSS-INLINE-3]
   <dd>Dave Cramer; Elika Etemad; Steve Zilles. <a href="https://www.w3.org/TR/css-inline-3/">CSS Inline Layout Module Level 3</a>. 8 August 2018. WD. URL: <a href="https://www.w3.org/TR/css-inline-3/">https://www.w3.org/TR/css-inline-3/</a>
   <dt id="biblio-css-masking-1">[CSS-MASKING-1]
   <dd>Dirk Schulze; Brian Birtles; Tab Atkins Jr.. <a href="https://www.w3.org/TR/css-masking-1/">CSS Masking Module Level 1</a>. 26 August 2014. CR. URL: <a href="https://www.w3.org/TR/css-masking-1/">https://www.w3.org/TR/css-masking-1/</a>
   <dt id="biblio-css-multicol-1">[CSS-MULTICOL-1]
   <dd>Florian Rivoal; Rachel Andrew. <a href="https://www.w3.org/TR/css-multicol-1/">CSS Multi-column Layout Module Level 1</a>. 28 May 2018. WD. URL: <a href="https://www.w3.org/TR/css-multicol-1/">https://www.w3.org/TR/css-multicol-1/</a>
   <dt id="biblio-css-pseudo-4">[CSS-PSEUDO-4]
   <dd>Daniel Glazman; Elika Etemad; Alan Stearns. <a href="https://www.w3.org/TR/css-pseudo-4/">CSS Pseudo-Elements Module Level 4</a>. 25 February 2019. WD. URL: <a href="https://www.w3.org/TR/css-pseudo-4/">https://www.w3.org/TR/css-pseudo-4/</a>
   <dt id="biblio-css-sizing-3">[CSS-SIZING-3]
   <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://www.w3.org/TR/css-sizing-3/">CSS Intrinsic &amp; Extrinsic Sizing Module Level 3</a>. 22 May 2019. WD. URL: <a href="https://www.w3.org/TR/css-sizing-3/">https://www.w3.org/TR/css-sizing-3/</a>
   <dt id="biblio-css-syntax-3">[CSS-SYNTAX-3]
   <dd>Tab Atkins Jr.; Simon Sapin. <a href="https://www.w3.org/TR/css-syntax-3/">CSS Syntax Module Level 3</a>. 20 February 2014. CR. URL: <a href="https://www.w3.org/TR/css-syntax-3/">https://www.w3.org/TR/css-syntax-3/</a>
   <dt id="biblio-css-text-3">[CSS-TEXT-3]
   <dd>Elika Etemad; Koji Ishii; Florian Rivoal. <a href="https://www.w3.org/TR/css-text-3/">CSS Text Module Level 3</a>. 12 December 2018. WD. URL: <a href="https://www.w3.org/TR/css-text-3/">https://www.w3.org/TR/css-text-3/</a>
   <dt id="biblio-css-text-decor-3">[CSS-TEXT-DECOR-3]
   <dd>Elika Etemad; Koji Ishii. <a href="https://www.w3.org/TR/css-text-decor-3/">CSS Text Decoration Module Level 3</a>. 3 July 2018. CR. URL: <a href="https://www.w3.org/TR/css-text-decor-3/">https://www.w3.org/TR/css-text-decor-3/</a>
   <dt id="biblio-css-transforms-2">[CSS-TRANSFORMS-2]
   <dd>CSS Transforms Module Level 2 URL: <a href="https://drafts.csswg.org/css-transforms-2/">https://drafts.csswg.org/css-transforms-2/</a>
   <dt id="biblio-css-values-3">[CSS-VALUES-3]
   <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://www.w3.org/TR/css-values-3/">CSS Values and Units Module Level 3</a>. 31 January 2019. CR. URL: <a href="https://www.w3.org/TR/css-values-3/">https://www.w3.org/TR/css-values-3/</a>
   <dt id="biblio-css-values-4">[CSS-VALUES-4]
   <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://www.w3.org/TR/css-values-4/">CSS Values and Units Module Level 4</a>. 31 January 2019. WD. URL: <a href="https://www.w3.org/TR/css-values-4/">https://www.w3.org/TR/css-values-4/</a>
   <dt id="biblio-css-writing-modes-3">[CSS-WRITING-MODES-3]
   <dd>Elika Etemad; Koji Ishii. <a href="https://www.w3.org/TR/css-writing-modes-3/">CSS Writing Modes Level 3</a>. 24 May 2018. CR. URL: <a href="https://www.w3.org/TR/css-writing-modes-3/">https://www.w3.org/TR/css-writing-modes-3/</a>
   <dt id="biblio-css-writing-modes-4">[CSS-WRITING-MODES-4]
   <dd>Elika Etemad; Koji Ishii. <a href="https://www.w3.org/TR/css-writing-modes-4/">CSS Writing Modes Level 4</a>. 24 May 2018. CR. URL: <a href="https://www.w3.org/TR/css-writing-modes-4/">https://www.w3.org/TR/css-writing-modes-4/</a>
   <dt id="biblio-css21">[CSS21]
   <dd>Bert Bos; et al. <a href="https://www.w3.org/TR/CSS2/">Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. REC. URL: <a href="https://www.w3.org/TR/CSS2/">https://www.w3.org/TR/CSS2/</a>
   <dt id="biblio-css3-box">[CSS3-BOX]
   <dd>Elika Etemad. <a href="https://www.w3.org/TR/css-box-3/">CSS Box Model Module Level 3</a>. 18 December 2018. WD. URL: <a href="https://www.w3.org/TR/css-box-3/">https://www.w3.org/TR/css-box-3/</a>
   <dt id="biblio-css3-flexbox">[CSS3-FLEXBOX]
   <dd>Tab Atkins Jr.; et al. <a href="https://www.w3.org/TR/css-flexbox-1/">CSS Flexible Box Layout Module Level 1</a>. 19 November 2018. CR. URL: <a href="https://www.w3.org/TR/css-flexbox-1/">https://www.w3.org/TR/css-flexbox-1/</a>
   <dt id="biblio-css3-grid-layout">[CSS3-GRID-LAYOUT]
   <dd>Tab Atkins Jr.; Elika Etemad; Rossen Atanassov. <a href="https://www.w3.org/TR/css-grid-1/">CSS Grid Layout Module Level 1</a>. 14 December 2017. CR. URL: <a href="https://www.w3.org/TR/css-grid-1/">https://www.w3.org/TR/css-grid-1/</a>
   <dt id="biblio-css3-transforms">[CSS3-TRANSFORMS]
   <dd>Simon Fraser; et al. <a href="https://www.w3.org/TR/css-transforms-1/">CSS Transforms Module Level 1</a>. 14 February 2019. CR. URL: <a href="https://www.w3.org/TR/css-transforms-1/">https://www.w3.org/TR/css-transforms-1/</a>
   <dt id="biblio-html">[HTML]
   <dd>Anne van Kesteren; et al. <a href="https://html.spec.whatwg.org/multipage/">HTML Standard</a>. Living Standard. URL: <a href="https://html.spec.whatwg.org/multipage/">https://html.spec.whatwg.org/multipage/</a>
   <dt id="biblio-mediaqueries-4">[MEDIAQUERIES-4]
   <dd>Florian Rivoal; Tab Atkins Jr.. <a href="https://www.w3.org/TR/mediaqueries-4/">Media Queries Level 4</a>. 5 September 2017. CR. URL: <a href="https://www.w3.org/TR/mediaqueries-4/">https://www.w3.org/TR/mediaqueries-4/</a>
   <dt id="biblio-rfc2119">[RFC2119]
   <dd>S. Bradner. <a href="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <a href="https://tools.ietf.org/html/rfc2119">https://tools.ietf.org/html/rfc2119</a>
   <dt id="biblio-uax29">[UAX29]
   <dd>Mark Davis. <a href="https://www.unicode.org/reports/tr29/tr29-35.html">Unicode Text Segmentation</a>. 15 February 2019. Unicode Standard Annex #29. URL: <a href="https://www.unicode.org/reports/tr29/tr29-35.html">https://www.unicode.org/reports/tr29/tr29-35.html</a>
  </dl>
  <h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
  <dl>
   <dt id="biblio-css-page-3">[CSS-PAGE-3]
   <dd>Elika Etemad; Simon Sapin. <a href="https://www.w3.org/TR/css-page-3/">CSS Paged Media Module Level 3</a>. 18 October 2018. WD. URL: <a href="https://www.w3.org/TR/css-page-3/">https://www.w3.org/TR/css-page-3/</a>
   <dt id="biblio-css-regions-1">[CSS-REGIONS-1]
   <dd>Rossen Atanassov; Alan Stearns. <a href="https://www.w3.org/TR/css-regions-1/">CSS Regions Module Level 1</a>. 9 October 2014. WD. URL: <a href="https://www.w3.org/TR/css-regions-1/">https://www.w3.org/TR/css-regions-1/</a>
   <dt id="biblio-css-ui-3">[CSS-UI-3]
   <dd>Tantek Çelik; Florian Rivoal. <a href="https://www.w3.org/TR/css-ui-3/">CSS Basic User Interface Module Level 3 (CSS3 UI)</a>. 21 June 2018. REC. URL: <a href="https://www.w3.org/TR/css-ui-3/">https://www.w3.org/TR/css-ui-3/</a>
   <dt id="biblio-css1">[CSS1]
   <dd>Håkon Wium Lie; Bert Bos. <a href="https://www.w3.org/TR/CSS1/">Cascading Style Sheets, level 1</a>. 13 September 2018. REC. URL: <a href="https://www.w3.org/TR/CSS1/">https://www.w3.org/TR/CSS1/</a>
   <dt id="biblio-cssom-view">[CSSOM-VIEW]
   <dd>Simon Pieters. <a href="https://www.w3.org/TR/cssom-view-1/">CSSOM View Module</a>. 17 March 2016. WD. URL: <a href="https://www.w3.org/TR/cssom-view-1/">https://www.w3.org/TR/cssom-view-1/</a>
  </dl>
  <h2 class="no-num no-ref heading settled" id="property-index"><span class="content">Property Index</span><a class="self-link" href="#property-index"></a></h2>
  <div class="big-element-wrapper">
   <table class="index">
    <thead>
     <tr>
      <th scope="col">Name
      <th scope="col">Value
      <th scope="col">Initial
      <th scope="col">Applies to
      <th scope="col">Inh.
      <th scope="col">%ages
      <th scope="col">Anim­ation type
      <th scope="col">Canonical order
      <th scope="col">Com­puted value
    <tbody>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-block-ellipsis" id="ref-for-propdef-block-ellipsis①①">block-ellipsis</a>
      <td>none | auto | &lt;string>
      <td>none
      <td>block containers
      <td>yes
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>specified value
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-continue" id="ref-for-propdef-continue①②">continue</a>
      <td>auto | discard
      <td>auto
      <td>block containers and multicol containers
      <td>no
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>specified keyword
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-line-clamp" id="ref-for-propdef-line-clamp⑤">line-clamp</a>
      <td>none | &lt;integer> &lt;'block-ellipsis'>?
      <td>none
      <td>see individual properties
      <td>see individual properties
      <td>N/A
      <td>see individual properties
      <td>per grammar
      <td>see individual properties
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-max-lines" id="ref-for-propdef-max-lines①④">max-lines</a>
      <td>none | &lt;integer>
      <td>none
      <td>block containers which are also fragmentation containers that capture region breaks
      <td>no
      <td>N/A
      <td>by computed value type
      <td>per grammar
      <td>the keyword none or an integer
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-overflow" id="ref-for-propdef-overflow①⑧">overflow</a>
      <td>[ visible | hidden | clip | scroll | auto ]{1,2}
      <td>visible
      <td>block containers [CSS21], flex containers [CSS3-FLEXBOX], and grid containers [CSS3-GRID-LAYOUT]
      <td>no
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>see individual properties
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-overflow-block" id="ref-for-propdef-overflow-block①">overflow-block</a>
      <td>&lt;'overflow'>
      <td>visible
      <td>Same as overflow-x and overflow-y
      <td>no
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>Same as overflow-x and overflow-y
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-overflow-inline" id="ref-for-propdef-overflow-inline①">overflow-inline</a>
      <td>&lt;'overflow'>
      <td>visible
      <td>Same as overflow-x and overflow-y
      <td>no
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>Same as overflow-x and overflow-y
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-overflow-x" id="ref-for-propdef-overflow-x⑧">overflow-x</a>
      <td>visible | hidden | clip | scroll | auto
      <td>visible
      <td>block containers [CSS21], flex containers [CSS3-FLEXBOX], and grid containers [CSS3-GRID-LAYOUT]
      <td>no
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>as specified, except with visible/clip computing to auto/hidden (respectively) if one of overflow-x or overflow-y is neither visible nor clip
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-overflow-y" id="ref-for-propdef-overflow-y⑧">overflow-y</a>
      <td>visible | hidden | clip | scroll | auto
      <td>visible
      <td>block containers [CSS21], flex containers [CSS3-FLEXBOX], and grid containers [CSS3-GRID-LAYOUT]
      <td>no
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>as specified, except with visible/clip computing to auto/hidden (respectively) if one of overflow-x or overflow-y is neither visible nor clip
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-text-overflow" id="ref-for-propdef-text-overflow⑦">text-overflow</a>
      <td>clip | ellipsis
      <td>clip
      <td>block containers
      <td>no
      <td>N/A
      <td>discrete
      <td>per grammar
      <td>specified keyword
   </table>
  </div>
  <h2 class="no-num no-ref heading settled" id="issues-index"><span class="content">Issues Index</span><a class="self-link" href="#issues-index"></a></h2>
  <div style="counter-reset:issue">
   <div class="issue">
     There’s disagreement on the scrolling model.
				2.1 apparently defined that you scrolled the *content* area;
				the content would overflow the content-box,
				and you would union that overflow with the content box to find the scrollable area.
				In particular, this means that the content would be offset by the start-sides padding,
				but if it overflowed,
				it would go right to the edge on the end sides.
				This is what Firefox and IE do. 
    <p>At least some authors (and spec authors)
				instead have the mental model that the padding box is what’s scrollable,
				so when you scroll to the end of the overflow,
				there’s the right/bottom padding.
				Chrome/WebKit do this for the block axis, at least.
				They’re somewhat inconsistent for the inline axis;
				there’s something weird about how they handle lineboxes.</p>
    <p>It seems that the block-axis padding is probably web-compatible to honor.
				It’s unclear that the inline-axis padding will be.
				Further experimentation is needed.</p>
     <a href="#issue-ba33a276"> ↵ </a>
   </div>
   <div class="issue"> Is this description of handling transforms
			sufficiently accurate?<a href="#issue-df7ef6c3"> ↵ </a></div>
   <div class="issue"> should <a class="css" data-link-type="propdesc" href="#propdef-overflow">overflow: clip</a> also clip the <a data-link-type="dfn" href="#scrollable-overflow">scrollable overflow</a> or should it remain a pure paint-time operation,
			which would mean that scrollable overflow, while invisible, would still be scrollable.<a href="#issue-3eeb0988"> ↵ </a></div>
   <div class="issue"> Need to evaluate compat of honoring or ignoring <a class="property" data-link-type="propdesc" href="https://drafts.fxtf.org/css-masking-1/#propdef-clip">clip</a> and <a class="property" data-link-type="propdesc" href="https://drafts.fxtf.org/css-masking-1/#propdef-clip-path">clip-path</a>.<a href="#issue-801c4d89"> ↵ </a></div>
   <div class="issue"> It’s not yet clear if including the end-side padding in the scrollable layer of block containers is Web-compatible, so this clause is under investigation.
			It appears that Chrome and Safari include such padding <a href="https://bug748518.bmoattachments.org/attachment.cgi?id=618078">in the block axis</a>;
			and the behavior in the inline axis is <a href="http://jsbin.com/digadoyohi/1/edit?html,css,output">not</a> <a href="http://jsbin.com/vexahocayi/1/edit?html,css,output">clear</a>. <a href="https://github.com/w3c/csswg-drafts/issues/129">&lt;https://github.com/w3c/csswg-drafts/issues/129></a><a href="#issue-210e5030"> ↵ </a></div>
   <div class="issue">This needs further testing and investigation;
			is therefore deferred in this draft.<a href="#issue-b9c7269c"> ↵ </a></div>
   <div class="issue"> import examples from <a data-link-type="biblio" href="#biblio-css3-box">[CSS3-BOX]</a>.<a href="#issue-1c721802"> ↵ </a></div>
   <div class="issue"> Should this apply to other types of fragmentation breaks (e.g. pages, columns)?<a href="#issue-23a7778c"> ↵ </a></div>
   <div class="issue"> For the time being,
	experiemental implementations are encouraged
	to follow the full behavior defined by this shorthand and its longhands,
	but to only expose the shorthand to authors.
	This is in order to facilitate further tweaking,
	and in particular potential renaming,
	of the longhand properties and their values.<a href="#issue-4d6cf3b4"> ↵ </a></div>
   <div class="issue"> This property is meant to generalize and replace the <code>region-fragment</code> property from <a data-link-type="biblio" href="#biblio-css-regions-1">[CSS-REGIONS-1]</a>.
Once it is sufficiently stable in this specification, <code>region-fragment</code> should be removed from the regions specification in favor of this.<a href="#issue-fe5938c8"> ↵ </a></div>
   <div class="issue"> Make sure effects on OM are well defined <a href="https://github.com/w3c/csswg-drafts/issues/2970">&lt;https://github.com/w3c/csswg-drafts/issues/2970></a><a href="#issue-0232c12f"> ↵ </a></div>
   <div class="issue"> Are we sure about that?
Discussions in the <a href="https://lists.w3.org/Archives/Public/www-style/2018Jul/0030.html">Syndey F2F meeting</a> seemed to generally converge on this,
but other possibilities were raised. <a href="https://github.com/w3c/csswg-drafts/issues/2971">&lt;https://github.com/w3c/csswg-drafts/issues/2971></a><a href="#issue-381eccd8"> ↵ </a></div>
  </div>
  <aside class="dfn-panel" data-for="overflow">
   <b><a href="#overflow">#overflow</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-overflow">2. 
Types of Overflow</a> <a href="#ref-for-overflow①">(2)</a>
    <li><a href="#ref-for-overflow②">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a> <a href="#ref-for-overflow③">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="ink-overflow">
   <b><a href="#ink-overflow">#ink-overflow</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-ink-overflow">2. 
Types of Overflow</a>
    <li><a href="#ref-for-ink-overflow①">2.1. Ink Overflow</a> <a href="#ref-for-ink-overflow②">(2)</a>
    <li><a href="#ref-for-ink-overflow③">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="ink-overflow-region">
   <b><a href="#ink-overflow-region">#ink-overflow-region</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-ink-overflow-region">2.1. Ink Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="ink-overflow-rectangle">
   <b><a href="#ink-overflow-rectangle">#ink-overflow-rectangle</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-ink-overflow-rectangle">2.1. Ink Overflow</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="scrollable-overflow">
   <b><a href="#scrollable-overflow">#scrollable-overflow</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-scrollable-overflow">2. 
Types of Overflow</a>
    <li><a href="#ref-for-scrollable-overflow①">2.2. 
Scrollable Overflow</a> <a href="#ref-for-scrollable-overflow②">(2)</a> <a href="#ref-for-scrollable-overflow③">(3)</a>
    <li><a href="#ref-for-scrollable-overflow④">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a>
    <li><a href="#ref-for-scrollable-overflow⑤">3.3. 
Scrolling Origin, Direction, and Restriction</a>
    <li><a href="#ref-for-scrollable-overflow⑥">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="scrollable-overflow-region">
   <b><a href="#scrollable-overflow-region">#scrollable-overflow-region</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-scrollable-overflow-region">2.1. Ink Overflow</a>
    <li><a href="#ref-for-scrollable-overflow-region①">2.2. 
Scrollable Overflow</a> <a href="#ref-for-scrollable-overflow-region②">(2)</a> <a href="#ref-for-scrollable-overflow-region③">(3)</a> <a href="#ref-for-scrollable-overflow-region④">(4)</a>
    <li><a href="#ref-for-scrollable-overflow-region⑤">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a> <a href="#ref-for-scrollable-overflow-region⑥">(2)</a>
    <li><a href="#ref-for-scrollable-overflow-region⑦">3.3. 
Scrolling Origin, Direction, and Restriction</a> <a href="#ref-for-scrollable-overflow-region⑧">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="scrollable-overflow-rectangle">
   <b><a href="#scrollable-overflow-rectangle">#scrollable-overflow-rectangle</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-scrollable-overflow-rectangle">2.2. 
Scrollable Overflow</a> <a href="#ref-for-scrollable-overflow-rectangle①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="scroll-container">
   <b><a href="#scroll-container">#scroll-container</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-scroll-container">2.2. 
Scrollable Overflow</a>
    <li><a href="#ref-for-scroll-container①">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a> <a href="#ref-for-scroll-container②">(2)</a> <a href="#ref-for-scroll-container③">(3)</a> <a href="#ref-for-scroll-container④">(4)</a> <a href="#ref-for-scroll-container⑤">(5)</a>
    <li><a href="#ref-for-scroll-container⑥">3.1. 
Overflow in Print and Other Static Media</a>
    <li><a href="#ref-for-scroll-container⑦">3.3. 
Scrolling Origin, Direction, and Restriction</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-overflow-x">
   <b><a href="#propdef-overflow-x">#propdef-overflow-x</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-overflow-x">1. 
Introduction</a>
    <li><a href="#ref-for-propdef-overflow-x①">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a> <a href="#ref-for-propdef-overflow-x②">(2)</a> <a href="#ref-for-propdef-overflow-x③">(3)</a> <a href="#ref-for-propdef-overflow-x④">(4)</a>
    <li><a href="#ref-for-propdef-overflow-x⑤">3.5. 
Flow Relative Properties: the overflow-block and overflow-inline properties</a> <a href="#ref-for-propdef-overflow-x⑥">(2)</a> <a href="#ref-for-propdef-overflow-x⑦">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-overflow-y">
   <b><a href="#propdef-overflow-y">#propdef-overflow-y</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-overflow-y">1. 
Introduction</a>
    <li><a href="#ref-for-propdef-overflow-y①">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a> <a href="#ref-for-propdef-overflow-y②">(2)</a> <a href="#ref-for-propdef-overflow-y③">(3)</a> <a href="#ref-for-propdef-overflow-y④">(4)</a>
    <li><a href="#ref-for-propdef-overflow-y⑤">3.5. 
Flow Relative Properties: the overflow-block and overflow-inline properties</a> <a href="#ref-for-propdef-overflow-y⑥">(2)</a> <a href="#ref-for-propdef-overflow-y⑦">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-overflow">
   <b><a href="#propdef-overflow">#propdef-overflow</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-overflow①">1. 
Introduction</a>
    <li><a href="#ref-for-propdef-overflow②">2.2. 
Scrollable Overflow</a> <a href="#ref-for-propdef-overflow③">(2)</a>
    <li><a href="#ref-for-propdef-overflow④">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a> <a href="#ref-for-propdef-overflow⑤">(2)</a> <a href="#ref-for-propdef-overflow⑥">(3)</a> <a href="#ref-for-propdef-overflow⑦">(4)</a> <a href="#ref-for-propdef-overflow⑧">(5)</a> <a href="#ref-for-propdef-overflow⑨">(6)</a>
    <li><a href="#ref-for-propdef-overflow①⓪">3.1. 
Overflow in Print and Other Static Media</a>
    <li><a href="#ref-for-propdef-overflow①①">3.4. 
Overflow Viewport Propagation</a> <a href="#ref-for-propdef-overflow①②">(2)</a>
    <li><a href="#ref-for-propdef-overflow①③">3.5. 
Flow Relative Properties: the overflow-block and overflow-inline properties</a>
    <li><a href="#ref-for-propdef-overflow①④">4.1. 
    Overflow Ellipsis: the text-overflow property</a>
    <li><a href="#ref-for-propdef-overflow①⑤">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-propdef-overflow①⑥">(2)</a> <a href="#ref-for-propdef-overflow①⑦">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-overflow-visible">
   <b><a href="#valdef-overflow-visible">#valdef-overflow-visible</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-overflow-visible">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a> <a href="#ref-for-valdef-overflow-visible①">(2)</a> <a href="#ref-for-valdef-overflow-visible②">(3)</a> <a href="#ref-for-valdef-overflow-visible③">(4)</a>
    <li><a href="#ref-for-valdef-overflow-visible④">3.4. 
Overflow Viewport Propagation</a> <a href="#ref-for-valdef-overflow-visible⑤">(2)</a> <a href="#ref-for-valdef-overflow-visible⑥">(3)</a>
    <li><a href="#ref-for-valdef-overflow-visible⑦">4.1. 
    Overflow Ellipsis: the text-overflow property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-overflow-hidden">
   <b><a href="#valdef-overflow-hidden">#valdef-overflow-hidden</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-overflow-hidden">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a> <a href="#ref-for-valdef-overflow-hidden①">(2)</a> <a href="#ref-for-valdef-overflow-hidden②">(3)</a> <a href="#ref-for-valdef-overflow-hidden③">(4)</a>
    <li><a href="#ref-for-valdef-overflow-hidden④">3.1. 
Overflow in Print and Other Static Media</a>
    <li><a href="#ref-for-valdef-overflow-hidden⑤">3.4. 
Overflow Viewport Propagation</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-overflow-clip">
   <b><a href="#valdef-overflow-clip">#valdef-overflow-clip</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-overflow-clip">1. 
Introduction</a>
    <li><a href="#ref-for-valdef-overflow-clip①">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a> <a href="#ref-for-valdef-overflow-clip②">(2)</a> <a href="#ref-for-valdef-overflow-clip③">(3)</a>
    <li><a href="#ref-for-valdef-overflow-clip④">3.4. 
Overflow Viewport Propagation</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-overflow-scroll">
   <b><a href="#valdef-overflow-scroll">#valdef-overflow-scroll</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-overflow-scroll">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a>
    <li><a href="#ref-for-valdef-overflow-scroll①">3.1. 
Overflow in Print and Other Static Media</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-overflow-auto">
   <b><a href="#valdef-overflow-auto">#valdef-overflow-auto</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-overflow-auto">3. 
Scrolling and Clipping Overflow: the overflow-x, overflow-y, and overflow properties</a>
    <li><a href="#ref-for-valdef-overflow-auto①">3.1. 
Overflow in Print and Other Static Media</a>
    <li><a href="#ref-for-valdef-overflow-auto②">3.4. 
Overflow Viewport Propagation</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-overflow-inline">
   <b><a href="#propdef-overflow-inline">#propdef-overflow-inline</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-overflow-inline">3.5. 
Flow Relative Properties: the overflow-block and overflow-inline properties</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-overflow-block">
   <b><a href="#propdef-overflow-block">#propdef-overflow-block</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-overflow-block">3.5. 
Flow Relative Properties: the overflow-block and overflow-inline properties</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-text-overflow">
   <b><a href="#propdef-text-overflow">#propdef-text-overflow</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-text-overflow">1. 
Introduction</a> <a href="#ref-for-propdef-text-overflow①">(2)</a>
    <li><a href="#ref-for-propdef-text-overflow②">4.1. 
    Overflow Ellipsis: the text-overflow property</a>
    <li><a href="#ref-for-propdef-text-overflow③">ellipsing details</a>
    <li><a href="#ref-for-propdef-text-overflow④">user interaction with ellipsis</a> <a href="#ref-for-propdef-text-overflow⑤">(2)</a>
    <li><a href="#ref-for-propdef-text-overflow⑥">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-block-ellipsis">
   <b><a href="#propdef-block-ellipsis">#propdef-block-ellipsis</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-block-ellipsis">1. 
Introduction</a>
    <li><a href="#ref-for-propdef-block-ellipsis①">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a> <a href="#ref-for-propdef-block-ellipsis②">(2)</a> <a href="#ref-for-propdef-block-ellipsis③">(3)</a>
    <li><a href="#ref-for-propdef-block-ellipsis④">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a> <a href="#ref-for-propdef-block-ellipsis⑤">(2)</a> <a href="#ref-for-propdef-block-ellipsis⑥">(3)</a> <a href="#ref-for-propdef-block-ellipsis⑦">(4)</a>
    <li><a href="#ref-for-propdef-block-ellipsis⑧">5.1.1. 
Legacy compatibility</a> <a href="#ref-for-propdef-block-ellipsis⑨">(2)</a> <a href="#ref-for-propdef-block-ellipsis①⓪">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="block-overflow-ellipsis">
   <b><a href="#block-overflow-ellipsis">#block-overflow-ellipsis</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-block-overflow-ellipsis">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a> <a href="#ref-for-block-overflow-ellipsis①">(2)</a> <a href="#ref-for-block-overflow-ellipsis②">(3)</a> <a href="#ref-for-block-overflow-ellipsis③">(4)</a> <a href="#ref-for-block-overflow-ellipsis④">(5)</a> <a href="#ref-for-block-overflow-ellipsis⑤">(6)</a> <a href="#ref-for-block-overflow-ellipsis⑥">(7)</a> <a href="#ref-for-block-overflow-ellipsis⑦">(8)</a> <a href="#ref-for-block-overflow-ellipsis⑧">(9)</a> <a href="#ref-for-block-overflow-ellipsis⑨">(10)</a> <a href="#ref-for-block-overflow-ellipsis①⓪">(11)</a> <a href="#ref-for-block-overflow-ellipsis①①">(12)</a> <a href="#ref-for-block-overflow-ellipsis①②">(13)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-block-ellipsis-none">
   <b><a href="#valdef-block-ellipsis-none">#valdef-block-ellipsis-none</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-block-ellipsis-none">4.2. 
Indicating Block-Axis Overflow: the block-ellipsis property</a> <a href="#ref-for-valdef-block-ellipsis-none①">(2)</a>
    <li><a href="#ref-for-valdef-block-ellipsis-none②">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-block-ellipsis-auto">
   <b><a href="#valdef-block-ellipsis-auto">#valdef-block-ellipsis-auto</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-block-ellipsis-auto">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a>
    <li><a href="#ref-for-valdef-block-ellipsis-auto①">5.1.1. 
Legacy compatibility</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-line-clamp">
   <b><a href="#propdef-line-clamp">#propdef-line-clamp</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-line-clamp">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a> <a href="#ref-for-propdef-line-clamp①">(2)</a>
    <li><a href="#ref-for-propdef-line-clamp②">5.1.1. 
Legacy compatibility</a> <a href="#ref-for-propdef-line-clamp③">(2)</a>
    <li><a href="#ref-for-propdef-line-clamp④">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-line-clamp-none">
   <b><a href="#valdef-line-clamp-none">#valdef-line-clamp-none</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-line-clamp-none">5.1.1. 
Legacy compatibility</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef--webkit-line-clamp">
   <b><a href="#propdef--webkit-line-clamp">#propdef--webkit-line-clamp</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef--webkit-line-clamp">5.1.1. 
Legacy compatibility</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-continue--webkit-discard">
   <b><a href="#valdef-continue--webkit-discard">#valdef-continue--webkit-discard</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-continue--webkit-discard">5.1.1. 
Legacy compatibility</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-max-lines">
   <b><a href="#propdef-max-lines">#propdef-max-lines</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-max-lines①">1. 
Introduction</a>
    <li><a href="#ref-for-propdef-max-lines②">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a> <a href="#ref-for-propdef-max-lines③">(2)</a> <a href="#ref-for-propdef-max-lines④">(3)</a>
    <li><a href="#ref-for-propdef-max-lines⑤">5.1.1. 
Legacy compatibility</a> <a href="#ref-for-propdef-max-lines⑥">(2)</a>
    <li><a href="#ref-for-propdef-max-lines⑦">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a> <a href="#ref-for-propdef-max-lines⑧">(2)</a> <a href="#ref-for-propdef-max-lines⑨">(3)</a> <a href="#ref-for-propdef-max-lines①⓪">(4)</a> <a href="#ref-for-propdef-max-lines①①">(5)</a> <a href="#ref-for-propdef-max-lines①②">(6)</a>
    <li><a href="#ref-for-propdef-max-lines①③">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-max-lines-none">
   <b><a href="#valdef-max-lines-none">#valdef-max-lines-none</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-max-lines-none">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a>
    <li><a href="#ref-for-valdef-max-lines-none①">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a> <a href="#ref-for-valdef-max-lines-none②">(2)</a> <a href="#ref-for-valdef-max-lines-none③">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-continue">
   <b><a href="#propdef-continue">#propdef-continue</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-continue">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a> <a href="#ref-for-propdef-continue①">(2)</a> <a href="#ref-for-propdef-continue②">(3)</a>
    <li><a href="#ref-for-propdef-continue③">5.1.1. 
Legacy compatibility</a> <a href="#ref-for-propdef-continue④">(2)</a> <a href="#ref-for-propdef-continue⑤">(3)</a>
    <li><a href="#ref-for-propdef-continue⑥">5.2. 
Forcing a Break After a Set Number of Lines: the max-lines property</a>
    <li><a href="#ref-for-propdef-continue⑦">5.3. 
Fragmentation of Overflow: the continue property</a> <a href="#ref-for-propdef-continue⑧">(2)</a> <a href="#ref-for-propdef-continue⑨">(3)</a> <a href="#ref-for-propdef-continue①⓪">(4)</a> <a href="#ref-for-propdef-continue①①">(5)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-continue-auto">
   <b><a href="#valdef-continue-auto">#valdef-continue-auto</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-continue-auto">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a>
    <li><a href="#ref-for-valdef-continue-auto①">5.3. 
Fragmentation of Overflow: the continue property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-continue-discard">
   <b><a href="#valdef-continue-discard">#valdef-continue-discard</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-continue-discard">5.1. 
Limiting Visible Lines: the line-clamp shorthand property</a>
    <li><a href="#ref-for-valdef-continue-discard①">5.1.1. 
Legacy compatibility</a> <a href="#ref-for-valdef-continue-discard②">(2)</a>
   </ul>
  </aside>
<script>/* script-caniuse-panel */

            window.addEventListener("load", function(){
                var panels = [].slice.call(document.querySelectorAll(".caniuse-status"));
                for(var i = 0; i < panels.length; i++) {
                    var panel = panels[i];
                    var dfn = document.querySelector("#" + panel.getAttribute("data-dfn-id"));
                    var rect = dfn.getBoundingClientRect();
                    panel.style.top = (window.scrollY + rect.top) + "px";
                }
            });
            document.body.addEventListener("click", function(e) {
                if(e.target.classList.contains("caniuse-panel-btn")) {
                    e.target.parentNode.classList.toggle("wrapped");
                }
            });</script>
<script>/* script-dfn-panel */

document.body.addEventListener("click", function(e) {
    var queryAll = function(sel) { return [].slice.call(document.querySelectorAll(sel)); }
    // Find the dfn element or panel, if any, that was clicked on.
    var el = e.target;
    var target;
    var hitALink = false;
    while(el.parentElement) {
        if(el.tagName == "A") {
            // Clicking on a link in a <dfn> shouldn't summon the panel
            hitALink = true;
        }
        if(el.classList.contains("dfn-paneled")) {
            target = "dfn";
            break;
        }
        if(el.classList.contains("dfn-panel")) {
            target = "dfn-panel";
            break;
        }
        el = el.parentElement;
    }
    if(target != "dfn-panel") {
        // Turn off any currently "on" or "activated" panels.
        queryAll(".dfn-panel.on, .dfn-panel.activated").forEach(function(el){
            el.classList.remove("on");
            el.classList.remove("activated");
        });
    }
    if(target == "dfn" && !hitALink) {
        // open the panel
        var dfnPanel = document.querySelector(".dfn-panel[data-for='" + el.id + "']");
        if(dfnPanel) {
            dfnPanel.classList.add("on");
            var rect = el.getBoundingClientRect();
            dfnPanel.style.left = window.scrollX + rect.right + 5 + "px";
            dfnPanel.style.top = window.scrollY + rect.top + "px";
            var panelRect = dfnPanel.getBoundingClientRect();
            var panelWidth = panelRect.right - panelRect.left;
            if(panelRect.right > document.body.scrollWidth && (rect.left - (panelWidth + 5)) > 0) {
                // Reposition, because the panel is overflowing
                dfnPanel.style.left = window.scrollX + rect.left - (panelWidth + 5) + "px";
            }
        } else {
            console.log("Couldn't find .dfn-panel[data-for='" + el.id + "']");
        }
    } else if(target == "dfn-panel") {
        // Switch it to "activated" state, which pins it.
        el.classList.add("activated");
        el.style.left = null;
        el.style.top = null;
    }

});
</script>